<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Win32k: sendmsg.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Win32k
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00842.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a> &#124;
<a href="#var-members">变量</a>  </div>
  <div class="headertitle">
<div class="title">sendmsg.c 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="a03629_source.html">precomp.h</a>&quot;</code><br />
</div>
<p><a href="a00842_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:aefcb7bbbb0f5da4a6b5841c04958b16e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#aefcb7bbbb0f5da4a6b5841c04958b16e">IsASwitchWnd</a>(pw)&#160;&#160;&#160;(<a class="el" href="a03728.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="el" href="a03263.html#a49dcd372a33faef6da57c5e7119aa93a">atomSysClass</a>[ICLS_SWITCH] == pw-&gt;pcls-&gt;atomClassName)</td></tr>
<tr class="separator:aefcb7bbbb0f5da4a6b5841c04958b16e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99ccc0ce31a8cf1beac5585a408d64ff"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#a99ccc0ce31a8cf1beac5585a408d64ff">fBroadcastProc</a>(pwnd)&#160;&#160;&#160;(!(ISAMENU(pwnd) || <a class="el" href="a00842.html#aefcb7bbbb0f5da4a6b5841c04958b16e">IsASwitchWnd</a>(pwnd)))</td></tr>
<tr class="separator:a99ccc0ce31a8cf1beac5585a408d64ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add838c111b491936750292a866544ada"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#add838c111b491936750292a866544ada">NoString</a>&#160;&#160;&#160;0</td></tr>
<tr class="separator:add838c111b491936750292a866544ada"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b19ebf797f2258df34176289fee16ff"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#a8b19ebf797f2258df34176289fee16ff">IsAnsiString</a>&#160;&#160;&#160;1</td></tr>
<tr class="separator:a8b19ebf797f2258df34176289fee16ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a462e0bbeb557ea21b91762d360985ed3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#a462e0bbeb557ea21b91762d360985ed3">IsUnicodeString</a>&#160;&#160;&#160;2</td></tr>
<tr class="separator:a462e0bbeb557ea21b91762d360985ed3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:aa38ed6c2085098ea4fb3fb3e84095bc3"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#aa38ed6c2085098ea4fb3fb3e84095bc3">UnlinkSendListSms</a> (<a class="el" href="a00899.html#a2bbc057c13dffc4e0b85dc00887d5ae3">PSMS</a>, <a class="el" href="a00899.html#a2bbc057c13dffc4e0b85dc00887d5ae3">PSMS</a> *)</td></tr>
<tr class="separator:aa38ed6c2085098ea4fb3fb3e84095bc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a6043207f9c1429e7022efbfa9f4086"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#a4a6043207f9c1429e7022efbfa9f4086">ReceiverDied</a> (<a class="el" href="a00899.html#a2bbc057c13dffc4e0b85dc00887d5ae3">PSMS</a>, <a class="el" href="a00899.html#a2bbc057c13dffc4e0b85dc00887d5ae3">PSMS</a> *)</td></tr>
<tr class="separator:a4a6043207f9c1429e7022efbfa9f4086"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acab1ecbb6c75cb99acb278cd2451518d"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#acab1ecbb6c75cb99acb278cd2451518d">SenderDied</a> (<a class="el" href="a00899.html#a2bbc057c13dffc4e0b85dc00887d5ae3">PSMS</a>, <a class="el" href="a00899.html#a2bbc057c13dffc4e0b85dc00887d5ae3">PSMS</a> *)</td></tr>
<tr class="separator:acab1ecbb6c75cb99acb278cd2451518d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac89bdc618cc93d3a6eb15c2d6ea7d75a"><td class="memItemLeft" align="right" valign="top">NTSTATUS&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#ac89bdc618cc93d3a6eb15c2d6ea7d75a">InitSMSLookaside</a> ()</td></tr>
<tr class="separator:ac89bdc618cc93d3a6eb15c2d6ea7d75a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad97dfdc535ff9d65db86f8206e7a38f8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00899.html#a2bbc057c13dffc4e0b85dc00887d5ae3">PSMS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#ad97dfdc535ff9d65db86f8206e7a38f8">AllocSMS</a> (VOID)</td></tr>
<tr class="separator:ad97dfdc535ff9d65db86f8206e7a38f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e2cf05ab05318fd5654f254de252686"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#a5e2cf05ab05318fd5654f254de252686">FreeSMS</a> (<a class="el" href="a00899.html#a2bbc057c13dffc4e0b85dc00887d5ae3">PSMS</a> psms)</td></tr>
<tr class="separator:a5e2cf05ab05318fd5654f254de252686"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ec4dab1cb25a7067a77efdebb74edf4"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#a4ec4dab1cb25a7067a77efdebb74edf4">_ReplyMessage</a> (LONG lRet)</td></tr>
<tr class="separator:a4ec4dab1cb25a7067a77efdebb74edf4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09e587e3bc8d6cf205bca5689f7a66cc"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#a09e587e3bc8d6cf205bca5689f7a66cc">xxxSendBSMtoDesktop</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwndDesk, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> message, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> wParam, LONG lParam, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwFlags, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwRecipients)</td></tr>
<tr class="separator:a09e587e3bc8d6cf205bca5689f7a66cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5225380d7fdc18b2708bfee0ec46801a"><td class="memItemLeft" align="right" valign="top">LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#a5225380d7fdc18b2708bfee0ec46801a">xxxSendMessageBSM</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> message, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> wParam, LONG lParam, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> xParam)</td></tr>
<tr class="separator:a5225380d7fdc18b2708bfee0ec46801a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a979009868386a45dc6249e9625c5c6db"><td class="memItemLeft" align="right" valign="top">LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#a979009868386a45dc6249e9625c5c6db">xxxSendMessageFF</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> message, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> wParam, LONG lParam, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> xParam)</td></tr>
<tr class="separator:a979009868386a45dc6249e9625c5c6db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec00217f2ba38eaaca234a78f94172aa"><td class="memItemLeft" align="right" valign="top">LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#aec00217f2ba38eaaca234a78f94172aa">xxxSendMessageEx</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> message, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> wParam, LONG lParam, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> xParam)</td></tr>
<tr class="separator:aec00217f2ba38eaaca234a78f94172aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69cf2e14dcefd941469ad5126e40f79a"><td class="memItemLeft" align="right" valign="top">LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#a69cf2e14dcefd941469ad5126e40f79a">xxxSendMessage</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> message, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> wParam, LONG lParam)</td></tr>
<tr class="separator:a69cf2e14dcefd941469ad5126e40f79a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bbe3674acd8620c7d8cf43d282241c0"><td class="memItemLeft" align="right" valign="top">LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#a4bbe3674acd8620c7d8cf43d282241c0">xxxSendMessageTimeout</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> message, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> wParam, LONG lParam, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> fuFlags, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> uTimeout, LPLONG lpdwResult)</td></tr>
<tr class="separator:a4bbe3674acd8620c7d8cf43d282241c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a4a6ef58238afeb2930d10ed87d2853"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#a4a4a6ef58238afeb2930d10ed87d2853">QueueNotifyMessage</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> message, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> wParam, LONG lParam)</td></tr>
<tr class="separator:a4a4a6ef58238afeb2930d10ed87d2853"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac6cbd728d486a3a91e1b5d3181ab07aa"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#ac6cbd728d486a3a91e1b5d3181ab07aa">xxxSystemBroadcastMessage</a> (<a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> message, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> wParam, LONG lParam, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> wCmd, <a class="el" href="a00899.html#a16be71707541ebaec57302d4bdc19b2a">PBROADCASTMSG</a> pbcm)</td></tr>
<tr class="separator:ac6cbd728d486a3a91e1b5d3181ab07aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0035e456f12ef530c2b674cd1f6f8b36"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#a0035e456f12ef530c2b674cd1f6f8b36">xxxSendNotifyMessage</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> message, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> wParam, LONG lParam)</td></tr>
<tr class="separator:a0035e456f12ef530c2b674cd1f6f8b36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfe6f35d8e62e08d08e52a221f643c9d"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#acfe6f35d8e62e08d08e52a221f643c9d">xxxSendMessageCallback</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> message, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> wParam, LONG lParam, SENDASYNCPROC lpResultCallBack, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwData, BOOL fClientRequest)</td></tr>
<tr class="separator:acfe6f35d8e62e08d08e52a221f643c9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e53f556a04607e23d1b746d5274b952"><td class="memItemLeft" align="right" valign="top">LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#a9e53f556a04607e23d1b746d5274b952">xxxInterSendMsgEx</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> message, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> wParam, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> lParam, <a class="el" href="a00365.html#a177dce23f2b497ba8dc22f5a92d3f3d3">PTHREADINFO</a> ptiSender, <a class="el" href="a00365.html#a177dce23f2b497ba8dc22f5a92d3f3d3">PTHREADINFO</a> ptiReceiver, <a class="el" href="a00899.html#afe5eb9a66a2922195e11fcf911f997d7">PINTRSENDMSGEX</a> pism)</td></tr>
<tr class="separator:a9e53f556a04607e23d1b746d5274b952"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24206b71ec0adad87b933a8b364e90c1"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#a24206b71ec0adad87b933a8b364e90c1">xxxReceiveMessage</a> (<a class="el" href="a00365.html#a177dce23f2b497ba8dc22f5a92d3f3d3">PTHREADINFO</a> ptiReceiver)</td></tr>
<tr class="separator:a24206b71ec0adad87b933a8b364e90c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af793abfba936a5b6bdca9f922db92874"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#af793abfba936a5b6bdca9f922db92874">SendMsgCleanup</a> (<a class="el" href="a00365.html#a177dce23f2b497ba8dc22f5a92d3f3d3">PTHREADINFO</a> ptiCurrent)</td></tr>
<tr class="separator:af793abfba936a5b6bdca9f922db92874"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ff62c57bdbf78ae988a936405420f6e"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#a7ff62c57bdbf78ae988a936405420f6e">ClearSendMessages</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd)</td></tr>
<tr class="separator:a7ff62c57bdbf78ae988a936405420f6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8bb5750f1785c7754a8b84827d131e8c"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#a8bb5750f1785c7754a8b84827d131e8c">_QuerySendMessage</a> (PMSG pmsg)</td></tr>
<tr class="separator:a8bb5750f1785c7754a8b84827d131e8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34b6961ce98c8a0a762e5aa8eb05f2bb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#a34b6961ce98c8a0a762e5aa8eb05f2bb">xxxSendSizeMessage</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> cmdSize)</td></tr>
<tr class="separator:a34b6961ce98c8a0a762e5aa8eb05f2bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69520c6e8309eb271485683d2bae262a"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#a69520c6e8309eb271485683d2bae262a">xxxProcessAsyncSendMessage</a> (<a class="el" href="a00899.html#a039f7fd6f36069ebd5cd93bce4e70751">PASYNCSENDMSG</a> pmsg)</td></tr>
<tr class="separator:a69520c6e8309eb271485683d2bae262a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb5204decd255d5005372b2c12890113"><td class="memItemLeft" align="right" valign="top">LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#adb5204decd255d5005372b2c12890113">xxxBroadcastMessage</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> message, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> wParam, LONG lParam, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> wCmd, <a class="el" href="a00899.html#a16be71707541ebaec57302d4bdc19b2a">PBROADCASTMSG</a> pbcm)</td></tr>
<tr class="separator:adb5204decd255d5005372b2c12890113"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
变量</h2></td></tr>
<tr class="memitem:aa9f7698b1d1cb8fb92adb2ff6b17effd"><td class="memItemLeft" align="right" valign="top">PVOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#aa9f7698b1d1cb8fb92adb2ff6b17effd">SMSLookasideBase</a></td></tr>
<tr class="separator:aa9f7698b1d1cb8fb92adb2ff6b17effd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac66681a8eebdc06117bf079d61c126f3"><td class="memItemLeft" align="right" valign="top">PVOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#ac66681a8eebdc06117bf079d61c126f3">SMSLookasideBounds</a></td></tr>
<tr class="separator:ac66681a8eebdc06117bf079d61c126f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15aab9f699bba774ac7bd51128484cb9"><td class="memItemLeft" align="right" valign="top">ZONE_HEADER&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#a15aab9f699bba774ac7bd51128484cb9">SMSLookasideZone</a></td></tr>
<tr class="separator:a15aab9f699bba774ac7bd51128484cb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a515921616ee307c5862eb0be3a8e7c1e"><td class="memItemLeft" align="right" valign="top">PRIVILEGE_SET&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00842.html#a515921616ee307c5862eb0be3a8e7c1e">psTcb</a></td></tr>
<tr class="separator:a515921616ee307c5862eb0be3a8e7c1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="a99ccc0ce31a8cf1beac5585a408d64ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a99ccc0ce31a8cf1beac5585a408d64ff">&#9670;&nbsp;</a></span>fBroadcastProc</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define fBroadcastProc</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">pwnd</td><td>)</td>
          <td>&#160;&#160;&#160;(!(ISAMENU(pwnd) || <a class="el" href="a00842.html#aefcb7bbbb0f5da4a6b5841c04958b16e">IsASwitchWnd</a>(pwnd)))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l00105">105</a> 行定义.</p>

</div>
</div>
<a id="a8b19ebf797f2258df34176289fee16ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b19ebf797f2258df34176289fee16ff">&#9670;&nbsp;</a></span>IsAnsiString</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IsAnsiString&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l01232">1232</a> 行定义.</p>

</div>
</div>
<a id="aefcb7bbbb0f5da4a6b5841c04958b16e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aefcb7bbbb0f5da4a6b5841c04958b16e">&#9670;&nbsp;</a></span>IsASwitchWnd</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IsASwitchWnd</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">pw</td><td>)</td>
          <td>&#160;&#160;&#160;(<a class="el" href="a03728.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="el" href="a03263.html#a49dcd372a33faef6da57c5e7119aa93a">atomSysClass</a>[ICLS_SWITCH] == pw-&gt;pcls-&gt;atomClassName)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l00017">17</a> 行定义.</p>

</div>
</div>
<a id="a462e0bbeb557ea21b91762d360985ed3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a462e0bbeb557ea21b91762d360985ed3">&#9670;&nbsp;</a></span>IsUnicodeString</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IsUnicodeString&#160;&#160;&#160;2</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l01233">1233</a> 行定义.</p>

</div>
</div>
<a id="add838c111b491936750292a866544ada"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add838c111b491936750292a866544ada">&#9670;&nbsp;</a></span>NoString</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NoString&#160;&#160;&#160;0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l01231">1231</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="a8bb5750f1785c7754a8b84827d131e8c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8bb5750f1785c7754a8b84827d131e8c">&#9670;&nbsp;</a></span>_QuerySendMessage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL _QuerySendMessage </td>
          <td>(</td>
          <td class="paramtype">PMSG&#160;</td>
          <td class="paramname"><em>pmsg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l02783">2783</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02784"></a><span class="lineno"> 2784</span>&#160;{</div>
<div class="line"><a name="l02785"></a><span class="lineno"> 2785</span>&#160;    <a class="code" href="a02945.html">PSMS</a> psms;</div>
<div class="line"><a name="l02786"></a><span class="lineno"> 2786</span>&#160; </div>
<div class="line"><a name="l02787"></a><span class="lineno"> 2787</span>&#160;    CheckCritInShared();</div>
<div class="line"><a name="l02788"></a><span class="lineno"> 2788</span>&#160; </div>
<div class="line"><a name="l02789"></a><span class="lineno"> 2789</span>&#160;    <span class="keywordflow">if</span> ((psms = PtiCurrentShared()-&gt;psmsCurrent) == NULL) {</div>
<div class="line"><a name="l02790"></a><span class="lineno"> 2790</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l02791"></a><span class="lineno"> 2791</span>&#160;    }</div>
<div class="line"><a name="l02792"></a><span class="lineno"> 2792</span>&#160; </div>
<div class="line"><a name="l02793"></a><span class="lineno"> 2793</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02794"></a><span class="lineno"> 2794</span>&#160;<span class="comment">     * copy the send message into *pmsg</span></div>
<div class="line"><a name="l02795"></a><span class="lineno"> 2795</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02796"></a><span class="lineno"> 2796</span>&#160;    <span class="keywordflow">if</span> (pmsg) {</div>
<div class="line"><a name="l02797"></a><span class="lineno"> 2797</span>&#160;        pmsg-&gt;hwnd = HW(psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>);</div>
<div class="line"><a name="l02798"></a><span class="lineno"> 2798</span>&#160;        pmsg-&gt;message = psms-&gt;<a class="code" href="a02945.html#a2878d2b3ecc6a3d2477bc260ee848675">message</a>;</div>
<div class="line"><a name="l02799"></a><span class="lineno"> 2799</span>&#160;        pmsg-&gt;wParam = psms-&gt;<a class="code" href="a02945.html#a7630a07d46e4a34e408cfb326d9d0648">wParam</a>;</div>
<div class="line"><a name="l02800"></a><span class="lineno"> 2800</span>&#160;        pmsg-&gt;lParam = psms-&gt;<a class="code" href="a02945.html#a5e6806726c901bac1a235d0caf8deb96">lParam</a>;</div>
<div class="line"><a name="l02801"></a><span class="lineno"> 2801</span>&#160;        pmsg-&gt;time = psms-&gt;<a class="code" href="a02945.html#a3fd6896ac063a5ed60d72ed34f133041">tSent</a>;</div>
<div class="line"><a name="l02802"></a><span class="lineno"> 2802</span>&#160;        pmsg-&gt;pt.x = 0;</div>
<div class="line"><a name="l02803"></a><span class="lineno"> 2803</span>&#160;        pmsg-&gt;pt.y = 0;</div>
<div class="line"><a name="l02804"></a><span class="lineno"> 2804</span>&#160;    }</div>
<div class="line"><a name="l02805"></a><span class="lineno"> 2805</span>&#160; </div>
<div class="line"><a name="l02806"></a><span class="lineno"> 2806</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02807"></a><span class="lineno"> 2807</span>&#160;<span class="comment">     * return the sender</span></div>
<div class="line"><a name="l02808"></a><span class="lineno"> 2808</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02809"></a><span class="lineno"> 2809</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l02810"></a><span class="lineno"> 2810</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899_source.html#l02611">tagSMS::lParam</a>, <a class="el" href="a00899_source.html#l02612">tagSMS::message</a>, <a class="el" href="a00899_source.html#l02613">tagSMS::spwnd</a>, <a class="el" href="a00899_source.html#l02600">tagSMS::tSent</a> , 以及 <a class="el" href="a00899_source.html#l02610">tagSMS::wParam</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03614_source.html#l06798">NtUserQuerySendMessage()</a>.</p>

</div>
</div>
<a id="a4ec4dab1cb25a7067a77efdebb74edf4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ec4dab1cb25a7067a77efdebb74edf4">&#9670;&nbsp;</a></span>_ReplyMessage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL _ReplyMessage </td>
          <td>(</td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>lRet</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l00227">227</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;{</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    <a class="code" href="a02889.html">PTHREADINFO</a> pti;</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    <a class="code" href="a02945.html">PSMS</a> psms;</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160; </div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    CheckCritIn();</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160; </div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;    pti = <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>();</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160; </div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;<span class="comment">     * Are we processing a SendMessage?</span></div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    psms = pti-&gt;<a class="code" href="a02889.html#a99fe3da4061cf81a351510d8e24abe5b">psmsCurrent</a>;</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    <span class="keywordflow">if</span> (psms == NULL)</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160; </div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;<span class="comment">     * See if the reply has been made already.</span></div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_REPLY)</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160; </div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;<span class="comment">     * Blow off the rest of the call if the SMS came</span></div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;<span class="comment">     * from xxxSendNotifyMessage().  Obviously there&#39;s</span></div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;<span class="comment">     * no one around to reply to in the case.</span></div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#af0d1e4ac0443bd32ed966f7e471183b8">ptiSender</a> != NULL) {</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160; </div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;<span class="comment">         * Reply to this message.  The sender should not free the SMS</span></div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;<span class="comment">         * because the receiver still considers it valid.  Thus we</span></div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;<span class="comment">         * mark it with a special bit indicating it has been replied</span></div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;<span class="comment">         * to.  We wait until both the sender and receiver are done</span></div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;<span class="comment">         * with the sms before we free it.</span></div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;        psms-&gt;<a class="code" href="a02945.html#a3d5a6d1389eee512ee74e85d7d37988b">lRet</a> = lRet;</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;        psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= SMF_REPLY;</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160; </div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;<span class="comment">         * Wake up the sender.</span></div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;<span class="comment">         * ??? why don&#39;t we test that psms == ptiSender-&gt;psmsSent?</span></div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;        <a class="code" href="a00824.html#a7a7fb081b27165c43974d89be67bbad8">SetWakeBit</a>(psms-&gt;<a class="code" href="a02945.html#af0d1e4ac0443bd32ed966f7e471183b8">ptiSender</a>, QS_SMSREPLY);</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_CB_REQUEST) {</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160; </div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;<span class="comment">         * From SendMessageCallback REQUEST callback.  Send the message</span></div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;<span class="comment">         * back with a the REPLY value.</span></div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;        <a class="code" href="a01881.html">TL</a> tlpwnd;</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;        <a class="code" href="a02949.html">INTRSENDMSGEX</a> ism;</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160; </div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;        psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= SMF_REPLY;</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160; </div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;        <span class="keywordflow">if</span> (!(psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_SENDERDIED)) {</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;            ism.<a class="code" href="a02949.html#a547498bf050b0628b65f83ba9237ce84">fuCall</a> = ISM_CALLBACK | ISM_REPLY;</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;            <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_CB_CLIENT)</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;                ism.<a class="code" href="a02949.html#a547498bf050b0628b65f83ba9237ce84">fuCall</a> |= ISM_CB_CLIENT;</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;            ism.<a class="code" href="a02949.html#a7ee9bbcad17fb211571e22478070487e">lpResultCallBack</a> = psms-&gt;<a class="code" href="a02945.html#a7ee9bbcad17fb211571e22478070487e">lpResultCallBack</a>;</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;            ism.<a class="code" href="a02949.html#ad38b92af7d164a277eb2d30b5e65a489">dwData</a> = psms-&gt;<a class="code" href="a02945.html#ad38b92af7d164a277eb2d30b5e65a489">dwData</a>;</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;            ism.<a class="code" href="a02949.html#a3d5a6d1389eee512ee74e85d7d37988b">lRet</a> = lRet;</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160; </div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;            ThreadLockWithPti(pti, psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, &amp;tlpwnd);</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160; </div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;            <a class="code" href="a00842.html#a9e53f556a04607e23d1b746d5274b952">xxxInterSendMsgEx</a>(psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, psms-&gt;<a class="code" href="a02945.html#a2878d2b3ecc6a3d2477bc260ee848675">message</a>, 0L, 0L,</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;                    NULL, psms-&gt;<a class="code" href="a02945.html#af1f37780572110e7cedfd3b27e4c6653">ptiCallBackSender</a>, &amp;ism );</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160; </div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;            ThreadUnlock(&amp;tlpwnd);</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;        }</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;    }</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160; </div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;<span class="comment">     * We have 4 conditions to satisfy:</span></div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;<span class="comment">     *</span></div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;<span class="comment">     * 16 - 16 : receiver yields if sender is waiting for this reply</span></div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;<span class="comment">     * 32 - 16 : receiver yields if sender is waiting for this reply</span></div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;<span class="comment">     * 16 - 32 : no yield required</span></div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;<span class="comment">     * 32 - 32 : No yielding required.</span></div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;    <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#af0d1e4ac0443bd32ed966f7e471183b8">ptiSender</a> &amp;&amp;</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;        (psms-&gt;<a class="code" href="a02945.html#af0d1e4ac0443bd32ed966f7e471183b8">ptiSender</a>-&gt;<a class="code" href="a02889.html#ae8b869ec5b101646649020f5b0fd5d0d">TIF_flags</a> &amp; TIF_16BIT || pti-&gt;<a class="code" href="a02889.html#ae8b869ec5b101646649020f5b0fd5d0d">TIF_flags</a> &amp; TIF_16BIT)) {</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160; </div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;        <a class="code" href="a00881.html#a282d32ed2a8d185b9af16311b5e464b9">DirectedScheduleTask</a>(pti, psms-&gt;<a class="code" href="a02945.html#af0d1e4ac0443bd32ed966f7e471183b8">ptiSender</a>, FALSE, psms);</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;        <span class="keywordflow">if</span> (pti-&gt;<a class="code" href="a02889.html#ae8b869ec5b101646649020f5b0fd5d0d">TIF_flags</a> &amp; TIF_16BIT &amp;&amp; psms-&gt;<a class="code" href="a02945.html#af0d1e4ac0443bd32ed966f7e471183b8">ptiSender</a>-&gt;<a class="code" href="a02889.html#a9e9fc9ec28f5b2ebac921b669df50531">psmsSent</a> == psms) {</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;            <a class="code" href="a00881.html#ae11878514dabd4ba1a2c58dd2bcf2d4d">xxxSleepTask</a>(TRUE, NULL);</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;        }</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;    }</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160; </div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00881_source.html#l00575">DirectedScheduleTask()</a>, <a class="el" href="a00899_source.html#l02605">tagSMS::dwData</a>, <a class="el" href="a00899_source.html#l02643">tagINTERSENDMSGEX::dwData</a>, <a class="el" href="a00899_source.html#l02609">tagSMS::flags</a>, <a class="el" href="a00899_source.html#l02640">tagINTERSENDMSGEX::fuCall</a>, <a class="el" href="a00899_source.html#l02604">tagSMS::lpResultCallBack</a>, <a class="el" href="a00899_source.html#l02642">tagINTERSENDMSGEX::lpResultCallBack</a>, <a class="el" href="a00899_source.html#l02608">tagSMS::lRet</a>, <a class="el" href="a00899_source.html#l02644">tagINTERSENDMSGEX::lRet</a>, <a class="el" href="a00899_source.html#l02612">tagSMS::message</a>, <a class="el" href="a00899_source.html#l02299">tagTHREADINFO::psmsCurrent</a>, <a class="el" href="a00899_source.html#l02298">tagTHREADINFO::psmsSent</a>, <a class="el" href="a00899_source.html#l02606">tagSMS::ptiCallBackSender</a>, <a class="el" href="a00263_source.html#l00526">PtiCurrent()</a>, <a class="el" href="a00899_source.html#l02601">tagSMS::ptiSender</a>, <a class="el" href="a00824_source.html#l03276">SetWakeBit()</a>, <a class="el" href="a00899_source.html#l02613">tagSMS::spwnd</a>, <a class="el" href="a00899_source.html#l02294">tagTHREADINFO::TIF_flags</a>, <a class="el" href="a00842_source.html#l01235">xxxInterSendMsgEx()</a> , 以及 <a class="el" href="a00881_source.html#l00234">xxxSleepTask()</a>.</p>

</div>
</div>
<a id="ad97dfdc535ff9d65db86f8206e7a38f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad97dfdc535ff9d65db86f8206e7a38f8">&#9670;&nbsp;</a></span>AllocSMS()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00899.html#a2bbc057c13dffc4e0b85dc00887d5ae3">PSMS</a> AllocSMS </td>
          <td>(</td>
          <td class="paramtype">VOID&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l00150">150</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;{</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <a class="code" href="a02945.html">PSMS</a> psms;</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160; </div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="comment">     * Attempt to get a QMSG from the zone. If this fails, then</span></div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="comment">     * LocalAlloc the QMSG</span></div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    psms = ExAllocateFromZone(&amp;<a class="code" href="a00842.html#a15aab9f699bba774ac7bd51128484cb9">SMSLookasideZone</a>);</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160; </div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    <span class="keywordflow">if</span> (!psms) {</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;<span class="comment">         * Allocate a Q message structure.</span></div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        <span class="keywordflow">if</span> ((psms = (<a class="code" href="a02945.html">PSMS</a>)UserAllocPoolWithQuota(<span class="keyword">sizeof</span>(<a class="code" href="a02945.html">SMS</a>), TAG_SMS)) == NULL) {</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;            <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;        }</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;<span class="preprocessor">#if DBG</span></div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;        AllocSMSSlowCalls++;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="preprocessor">#endif // DBG</span></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160; </div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    }</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160; </div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;<span class="preprocessor">#if DBG</span></div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    AllocSMSCalls++;</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160; </div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    <span class="keywordflow">if</span> (AllocSMSCalls-DelSMSCalls &gt; AllocSMSHiWater) {</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;        AllocSMSHiWater = AllocSMSCalls-DelSMSCalls;</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    }</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<span class="preprocessor">#endif // DBG</span></div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160; </div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    <span class="keywordflow">return</span> psms;</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00842_source.html#l00030">SMSLookasideZone</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00842_source.html#l01235">xxxInterSendMsgEx()</a>.</p>

</div>
</div>
<a id="a7ff62c57bdbf78ae988a936405420f6e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7ff62c57bdbf78ae988a936405420f6e">&#9670;&nbsp;</a></span>ClearSendMessages()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID ClearSendMessages </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l02319">2319</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02321"></a><span class="lineno"> 2321</span>&#160;{</div>
<div class="line"><a name="l02322"></a><span class="lineno"> 2322</span>&#160;    <a class="code" href="a02945.html">PSMS</a> psms, psmsNext;</div>
<div class="line"><a name="l02323"></a><span class="lineno"> 2323</span>&#160;    <a class="code" href="a02945.html">PSMS</a> *ppsms;</div>
<div class="line"><a name="l02324"></a><span class="lineno"> 2324</span>&#160; </div>
<div class="line"><a name="l02325"></a><span class="lineno"> 2325</span>&#160;    CheckCritIn();</div>
<div class="line"><a name="l02326"></a><span class="lineno"> 2326</span>&#160; </div>
<div class="line"><a name="l02327"></a><span class="lineno"> 2327</span>&#160;    psms = <a class="code" href="a03257.html#a8f31d83ac0a205f71d1ef0bf7c64ed8b">gpsmsList</a>;</div>
<div class="line"><a name="l02328"></a><span class="lineno"> 2328</span>&#160;    <span class="keywordflow">while</span> (psms != NULL) {</div>
<div class="line"><a name="l02329"></a><span class="lineno"> 2329</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02330"></a><span class="lineno"> 2330</span>&#160;<span class="comment">         * Grab the next one beforehand in case we free the current one.</span></div>
<div class="line"><a name="l02331"></a><span class="lineno"> 2331</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02332"></a><span class="lineno"> 2332</span>&#160;        psmsNext = psms-&gt;<a class="code" href="a02945.html#a08fcc422c6f01bad78bfd4c9c9e4ddb6">psmsNext</a>;</div>
<div class="line"><a name="l02333"></a><span class="lineno"> 2333</span>&#160; </div>
<div class="line"><a name="l02334"></a><span class="lineno"> 2334</span>&#160;        <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a> == pwnd) {</div>
<div class="line"><a name="l02335"></a><span class="lineno"> 2335</span>&#160; </div>
<div class="line"><a name="l02336"></a><span class="lineno"> 2336</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02337"></a><span class="lineno"> 2337</span>&#160;<span class="comment">             * If the sender has died, then mark this receiver free so the</span></div>
<div class="line"><a name="l02338"></a><span class="lineno"> 2338</span>&#160;<span class="comment">             * receiver will destroy it in its processing.</span></div>
<div class="line"><a name="l02339"></a><span class="lineno"> 2339</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02340"></a><span class="lineno"> 2340</span>&#160;            <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_SENDERDIED) {</div>
<div class="line"><a name="l02341"></a><span class="lineno"> 2341</span>&#160;                psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= SMF_REPLY | SMF_RECEIVERFREE;</div>
<div class="line"><a name="l02342"></a><span class="lineno"> 2342</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02343"></a><span class="lineno"> 2343</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l02344"></a><span class="lineno"> 2344</span>&#160;<span class="comment">                 * The sender is alive. If the receiver hasn&#39;t replied to</span></div>
<div class="line"><a name="l02345"></a><span class="lineno"> 2345</span>&#160;<span class="comment">                 * this yet, make a reply so the sender gets it. Make sure</span></div>
<div class="line"><a name="l02346"></a><span class="lineno"> 2346</span>&#160;<span class="comment">                 * the receiver is the one free it so we don&#39;t have a race</span></div>
<div class="line"><a name="l02347"></a><span class="lineno"> 2347</span>&#160;<span class="comment">                 * condition.</span></div>
<div class="line"><a name="l02348"></a><span class="lineno"> 2348</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l02349"></a><span class="lineno"> 2349</span>&#160;                <span class="keywordflow">if</span> (!(psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_REPLY)) {</div>
<div class="line"><a name="l02350"></a><span class="lineno"> 2350</span>&#160; </div>
<div class="line"><a name="l02351"></a><span class="lineno"> 2351</span>&#160;                    <span class="comment">/*</span></div>
<div class="line"><a name="l02352"></a><span class="lineno"> 2352</span>&#160;<span class="comment">                     * The sms is either still on the receive list</span></div>
<div class="line"><a name="l02353"></a><span class="lineno"> 2353</span>&#160;<span class="comment">                     * or is currently being received. Since the sender</span></div>
<div class="line"><a name="l02354"></a><span class="lineno"> 2354</span>&#160;<span class="comment">                     * is alive, we want the sender to get the reply</span></div>
<div class="line"><a name="l02355"></a><span class="lineno"> 2355</span>&#160;<span class="comment">                     * to this SMS. If it hasn&#39;t been received, take</span></div>
<div class="line"><a name="l02356"></a><span class="lineno"> 2356</span>&#160;<span class="comment">                     * it off the receive list and reply to it. If it</span></div>
<div class="line"><a name="l02357"></a><span class="lineno"> 2357</span>&#160;<span class="comment">                     * has been received, then just leave it alone:</span></div>
<div class="line"><a name="l02358"></a><span class="lineno"> 2358</span>&#160;<span class="comment">                     * it&#39;ll get replied to normally.</span></div>
<div class="line"><a name="l02359"></a><span class="lineno"> 2359</span>&#160;<span class="comment">                     */</span></div>
<div class="line"><a name="l02360"></a><span class="lineno"> 2360</span>&#160;                    <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_CB_REQUEST) {</div>
<div class="line"><a name="l02361"></a><span class="lineno"> 2361</span>&#160;                        <span class="comment">/*</span></div>
<div class="line"><a name="l02362"></a><span class="lineno"> 2362</span>&#160;<span class="comment">                         * From SendMessageCallback REQUEST callback.  Send the</span></div>
<div class="line"><a name="l02363"></a><span class="lineno"> 2363</span>&#160;<span class="comment">                         * message back with a the REPLY value.</span></div>
<div class="line"><a name="l02364"></a><span class="lineno"> 2364</span>&#160;<span class="comment">                         */</span></div>
<div class="line"><a name="l02365"></a><span class="lineno"> 2365</span>&#160;                        <a class="code" href="a01881.html">TL</a> tlpwnd;</div>
<div class="line"><a name="l02366"></a><span class="lineno"> 2366</span>&#160;                        <a class="code" href="a02949.html">INTRSENDMSGEX</a> ism;</div>
<div class="line"><a name="l02367"></a><span class="lineno"> 2367</span>&#160; </div>
<div class="line"><a name="l02368"></a><span class="lineno"> 2368</span>&#160;                        psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= SMF_REPLY;</div>
<div class="line"><a name="l02369"></a><span class="lineno"> 2369</span>&#160; </div>
<div class="line"><a name="l02370"></a><span class="lineno"> 2370</span>&#160;                        ism.<a class="code" href="a02949.html#a547498bf050b0628b65f83ba9237ce84">fuCall</a> = ISM_CALLBACK | ISM_REPLY;</div>
<div class="line"><a name="l02371"></a><span class="lineno"> 2371</span>&#160;                        <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_CB_CLIENT)</div>
<div class="line"><a name="l02372"></a><span class="lineno"> 2372</span>&#160;                            ism.<a class="code" href="a02949.html#a547498bf050b0628b65f83ba9237ce84">fuCall</a> |= ISM_CB_CLIENT;</div>
<div class="line"><a name="l02373"></a><span class="lineno"> 2373</span>&#160;                        ism.<a class="code" href="a02949.html#a7ee9bbcad17fb211571e22478070487e">lpResultCallBack</a> = psms-&gt;<a class="code" href="a02945.html#a7ee9bbcad17fb211571e22478070487e">lpResultCallBack</a>;</div>
<div class="line"><a name="l02374"></a><span class="lineno"> 2374</span>&#160;                        ism.<a class="code" href="a02949.html#ad38b92af7d164a277eb2d30b5e65a489">dwData</a> = psms-&gt;<a class="code" href="a02945.html#ad38b92af7d164a277eb2d30b5e65a489">dwData</a>;</div>
<div class="line"><a name="l02375"></a><span class="lineno"> 2375</span>&#160;                        ism.<a class="code" href="a02949.html#a3d5a6d1389eee512ee74e85d7d37988b">lRet</a> = 0L;    <span class="comment">/* null return */</span></div>
<div class="line"><a name="l02376"></a><span class="lineno"> 2376</span>&#160; </div>
<div class="line"><a name="l02377"></a><span class="lineno"> 2377</span>&#160;                        <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, &amp;tlpwnd);</div>
<div class="line"><a name="l02378"></a><span class="lineno"> 2378</span>&#160; </div>
<div class="line"><a name="l02379"></a><span class="lineno"> 2379</span>&#160;                        <a class="code" href="a00842.html#a9e53f556a04607e23d1b746d5274b952">xxxInterSendMsgEx</a>(psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, psms-&gt;<a class="code" href="a02945.html#a2878d2b3ecc6a3d2477bc260ee848675">message</a>, 0L, 0L,</div>
<div class="line"><a name="l02380"></a><span class="lineno"> 2380</span>&#160;                                NULL, psms-&gt;<a class="code" href="a02945.html#af1f37780572110e7cedfd3b27e4c6653">ptiCallBackSender</a>, &amp;ism );</div>
<div class="line"><a name="l02381"></a><span class="lineno"> 2381</span>&#160; </div>
<div class="line"><a name="l02382"></a><span class="lineno"> 2382</span>&#160;                        ThreadUnlock(&amp;tlpwnd);</div>
<div class="line"><a name="l02383"></a><span class="lineno"> 2383</span>&#160;                    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!(psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_RECEIVERBUSY)) {</div>
<div class="line"><a name="l02384"></a><span class="lineno"> 2384</span>&#160;                        <span class="comment">/*</span></div>
<div class="line"><a name="l02385"></a><span class="lineno"> 2385</span>&#160;<span class="comment">                         * If there is no sender, this is a notification</span></div>
<div class="line"><a name="l02386"></a><span class="lineno"> 2386</span>&#160;<span class="comment">                         * message (nobody to reply to). In this case,</span></div>
<div class="line"><a name="l02387"></a><span class="lineno"> 2387</span>&#160;<span class="comment">                         * just set the SMF_REPLY bit (SMF_RECEIVERFREE</span></div>
<div class="line"><a name="l02388"></a><span class="lineno"> 2388</span>&#160;<span class="comment">                         * is already set) and this&#39;ll cause ReceiveMessage</span></div>
<div class="line"><a name="l02389"></a><span class="lineno"> 2389</span>&#160;<span class="comment">                         * to just free this SMS and return.</span></div>
<div class="line"><a name="l02390"></a><span class="lineno"> 2390</span>&#160;<span class="comment">                         */</span></div>
<div class="line"><a name="l02391"></a><span class="lineno"> 2391</span>&#160;                        <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#af0d1e4ac0443bd32ed966f7e471183b8">ptiSender</a> == NULL) {</div>
<div class="line"><a name="l02392"></a><span class="lineno"> 2392</span>&#160;                            psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= SMF_REPLY;</div>
<div class="line"><a name="l02393"></a><span class="lineno"> 2393</span>&#160;                        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02394"></a><span class="lineno"> 2394</span>&#160;                            <span class="comment">/*</span></div>
<div class="line"><a name="l02395"></a><span class="lineno"> 2395</span>&#160;<span class="comment">                             * There is a sender, and it wants a reply: take</span></div>
<div class="line"><a name="l02396"></a><span class="lineno"> 2396</span>&#160;<span class="comment">                             * this SMS off the receive list, and reply</span></div>
<div class="line"><a name="l02397"></a><span class="lineno"> 2397</span>&#160;<span class="comment">                             * to the sender.</span></div>
<div class="line"><a name="l02398"></a><span class="lineno"> 2398</span>&#160;<span class="comment">                             */</span></div>
<div class="line"><a name="l02399"></a><span class="lineno"> 2399</span>&#160;                            <span class="keywordflow">for</span> (ppsms = &amp;(psms-&gt;<a class="code" href="a02945.html#ad9cf28b93724ef783206c2b010f7202d">ptiReceiver</a>-&gt;<a class="code" href="a02889.html#aa58ea5e7644e85127ac49b6ab8880a12">psmsReceiveList</a>);</div>
<div class="line"><a name="l02400"></a><span class="lineno"> 2400</span>&#160;                                        *ppsms != NULL;</div>
<div class="line"><a name="l02401"></a><span class="lineno"> 2401</span>&#160;                                        ppsms = &amp;((*ppsms)-&gt;psmsReceiveNext)) {</div>
<div class="line"><a name="l02402"></a><span class="lineno"> 2402</span>&#160; </div>
<div class="line"><a name="l02403"></a><span class="lineno"> 2403</span>&#160;                                <span class="keywordflow">if</span> (*ppsms == psms) {</div>
<div class="line"><a name="l02404"></a><span class="lineno"> 2404</span>&#160;                                    *ppsms = psms-&gt;<a class="code" href="a02945.html#a27efa4726ffb5b422ea6d637046cc55a">psmsReceiveNext</a>;</div>
<div class="line"><a name="l02405"></a><span class="lineno"> 2405</span>&#160;                                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02406"></a><span class="lineno"> 2406</span>&#160;                                }</div>
<div class="line"><a name="l02407"></a><span class="lineno"> 2407</span>&#160;                            }</div>
<div class="line"><a name="l02408"></a><span class="lineno"> 2408</span>&#160; </div>
<div class="line"><a name="l02409"></a><span class="lineno"> 2409</span>&#160; </div>
<div class="line"><a name="l02410"></a><span class="lineno"> 2410</span>&#160;      <span class="comment">/*</span></div>
<div class="line"><a name="l02411"></a><span class="lineno"> 2411</span>&#160;<span class="comment">                             * Reply to this message so the sender</span></div>
<div class="line"><a name="l02412"></a><span class="lineno"> 2412</span>&#160;<span class="comment">                             * wakes up.</span></div>
<div class="line"><a name="l02413"></a><span class="lineno"> 2413</span>&#160;<span class="comment">                             */</span></div>
<div class="line"><a name="l02414"></a><span class="lineno"> 2414</span>&#160;                            psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= SMF_REPLY;</div>
<div class="line"><a name="l02415"></a><span class="lineno"> 2415</span>&#160;                            psms-&gt;<a class="code" href="a02945.html#a3d5a6d1389eee512ee74e85d7d37988b">lRet</a> = 0;</div>
<div class="line"><a name="l02416"></a><span class="lineno"> 2416</span>&#160;                            psms-&gt;<a class="code" href="a02945.html#a27efa4726ffb5b422ea6d637046cc55a">psmsReceiveNext</a> = NULL;</div>
<div class="line"><a name="l02417"></a><span class="lineno"> 2417</span>&#160;                            <a class="code" href="a00824.html#a7a7fb081b27165c43974d89be67bbad8">SetWakeBit</a>(psms-&gt;<a class="code" href="a02945.html#af0d1e4ac0443bd32ed966f7e471183b8">ptiSender</a>, QS_SMSREPLY);</div>
<div class="line"><a name="l02418"></a><span class="lineno"> 2418</span>&#160; </div>
<div class="line"><a name="l02419"></a><span class="lineno"> 2419</span>&#160;                            <span class="comment">/*</span></div>
<div class="line"><a name="l02420"></a><span class="lineno"> 2420</span>&#160;<span class="comment">                             *  16 bit senders need to be notifed that sends completed</span></div>
<div class="line"><a name="l02421"></a><span class="lineno"> 2421</span>&#160;<span class="comment">                             *  otherwise it may wait for a very long time for the reply.</span></div>
<div class="line"><a name="l02422"></a><span class="lineno"> 2422</span>&#160;<span class="comment">                             */</span></div>
<div class="line"><a name="l02423"></a><span class="lineno"> 2423</span>&#160;                            <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#af0d1e4ac0443bd32ed966f7e471183b8">ptiSender</a>-&gt;<a class="code" href="a02889.html#ae8b869ec5b101646649020f5b0fd5d0d">TIF_flags</a> &amp; TIF_16BIT) {</div>
<div class="line"><a name="l02424"></a><span class="lineno"> 2424</span>&#160;                                <a class="code" href="a00881.html#a282d32ed2a8d185b9af16311b5e464b9">DirectedScheduleTask</a>(psms-&gt;<a class="code" href="a02945.html#ad9cf28b93724ef783206c2b010f7202d">ptiReceiver</a>, psms-&gt;<a class="code" href="a02945.html#af0d1e4ac0443bd32ed966f7e471183b8">ptiSender</a>, FALSE, psms);</div>
<div class="line"><a name="l02425"></a><span class="lineno"> 2425</span>&#160;                            }</div>
<div class="line"><a name="l02426"></a><span class="lineno"> 2426</span>&#160;                        }</div>
<div class="line"><a name="l02427"></a><span class="lineno"> 2427</span>&#160;                    }</div>
<div class="line"><a name="l02428"></a><span class="lineno"> 2428</span>&#160;                }</div>
<div class="line"><a name="l02429"></a><span class="lineno"> 2429</span>&#160;            }</div>
<div class="line"><a name="l02430"></a><span class="lineno"> 2430</span>&#160; </div>
<div class="line"><a name="l02431"></a><span class="lineno"> 2431</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02432"></a><span class="lineno"> 2432</span>&#160;<span class="comment">             * Unlock the pwnd from the SMS structure.</span></div>
<div class="line"><a name="l02433"></a><span class="lineno"> 2433</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02434"></a><span class="lineno"> 2434</span>&#160;            Unlock(&amp;psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>);</div>
<div class="line"><a name="l02435"></a><span class="lineno"> 2435</span>&#160;        }</div>
<div class="line"><a name="l02436"></a><span class="lineno"> 2436</span>&#160; </div>
<div class="line"><a name="l02437"></a><span class="lineno"> 2437</span>&#160;        psms = psmsNext;</div>
<div class="line"><a name="l02438"></a><span class="lineno"> 2438</span>&#160;    }</div>
<div class="line"><a name="l02439"></a><span class="lineno"> 2439</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00881_source.html#l00575">DirectedScheduleTask()</a>, <a class="el" href="a00899_source.html#l02605">tagSMS::dwData</a>, <a class="el" href="a00899_source.html#l02643">tagINTERSENDMSGEX::dwData</a>, <a class="el" href="a00899_source.html#l02609">tagSMS::flags</a>, <a class="el" href="a00899_source.html#l02640">tagINTERSENDMSGEX::fuCall</a>, <a class="el" href="a03257_source.html#l00174">gpsmsList</a>, <a class="el" href="a00899_source.html#l02604">tagSMS::lpResultCallBack</a>, <a class="el" href="a00899_source.html#l02642">tagINTERSENDMSGEX::lpResultCallBack</a>, <a class="el" href="a00899_source.html#l02608">tagSMS::lRet</a>, <a class="el" href="a00899_source.html#l02644">tagINTERSENDMSGEX::lRet</a>, <a class="el" href="a00899_source.html#l02612">tagSMS::message</a>, <a class="el" href="a00899_source.html#l02594">tagSMS::psmsNext</a>, <a class="el" href="a00899_source.html#l02300">tagTHREADINFO::psmsReceiveList</a>, <a class="el" href="a00899_source.html#l02599">tagSMS::psmsReceiveNext</a>, <a class="el" href="a00899_source.html#l02606">tagSMS::ptiCallBackSender</a>, <a class="el" href="a00899_source.html#l02602">tagSMS::ptiReceiver</a>, <a class="el" href="a00899_source.html#l02601">tagSMS::ptiSender</a>, <a class="el" href="a00824_source.html#l03276">SetWakeBit()</a>, <a class="el" href="a00899_source.html#l02613">tagSMS::spwnd</a>, <a class="el" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock()</a>, <a class="el" href="a00899_source.html#l02294">tagTHREADINFO::TIF_flags</a> , 以及 <a class="el" href="a00842_source.html#l01235">xxxInterSendMsgEx()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00635_source.html#l01817">xxxFreeWindow()</a>.</p>

</div>
</div>
<a id="a5e2cf05ab05318fd5654f254de252686"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e2cf05ab05318fd5654f254de252686">&#9670;&nbsp;</a></span>FreeSMS()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FreeSMS </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00899.html#a2bbc057c13dffc4e0b85dc00887d5ae3">PSMS</a>&#160;</td>
          <td class="paramname"><em>psms</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l00193">193</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;{</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;<span class="preprocessor">#if DBG</span></div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    DelSMSCalls++;</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;<span class="preprocessor">#endif // DBG</span></div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160; </div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;<span class="comment">     * If the psms was from zone, then free to zone.</span></div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <span class="keywordflow">if</span> (((PVOID)psms &gt;= <a class="code" href="a00842.html#aa9f7698b1d1cb8fb92adb2ff6b17effd">SMSLookasideBase</a>) &amp;&amp; ((PVOID)psms &lt; <a class="code" href="a00842.html#ac66681a8eebdc06117bf079d61c126f3">SMSLookasideBounds</a>)) {</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;        ExFreeToZone(&amp;<a class="code" href="a00842.html#a15aab9f699bba774ac7bd51128484cb9">SMSLookasideZone</a>, psms);</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="preprocessor">#if DBG</span></div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;        DelSMSSlowCalls++;</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;<span class="preprocessor">#endif // DBG</span></div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;        UserFreePool(psms);</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    }</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00842_source.html#l00028">SMSLookasideBase</a>, <a class="el" href="a00842_source.html#l00029">SMSLookasideBounds</a> , 以及 <a class="el" href="a00842_source.html#l00030">SMSLookasideZone</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00842_source.html#l02689">UnlinkSendListSms()</a> , 以及 <a class="el" href="a00842_source.html#l01235">xxxInterSendMsgEx()</a>.</p>

</div>
</div>
<a id="ac89bdc618cc93d3a6eb15c2d6ea7d75a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac89bdc618cc93d3a6eb15c2d6ea7d75a">&#9670;&nbsp;</a></span>InitSMSLookaside()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NTSTATUS InitSMSLookaside </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l00119">119</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;{</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    ULONG BlockSize;</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    ULONG InitialSegmentSize;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160; </div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    BlockSize = (<span class="keyword">sizeof</span>(<a class="code" href="a00899.html#a1a40e60b709346f7ba00b61880d7fe39">SMS</a>) + 7) &amp; ~7;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    InitialSegmentSize = 8 * BlockSize + <span class="keyword">sizeof</span>(ZONE_SEGMENT_HEADER);</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <a class="code" href="a00842.html#aa9f7698b1d1cb8fb92adb2ff6b17effd">SMSLookasideBase</a> = UserAllocPool(InitialSegmentSize, TAG_LOOKASIDE);</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <span class="keywordflow">if</span> (!<a class="code" href="a00842.html#aa9f7698b1d1cb8fb92adb2ff6b17effd">SMSLookasideBase</a>) {</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;        <span class="keywordflow">return</span> STATUS_NO_MEMORY;</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    }</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160; </div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <a class="code" href="a00842.html#ac66681a8eebdc06117bf079d61c126f3">SMSLookasideBounds</a> = (PVOID)((PUCHAR)<a class="code" href="a00842.html#aa9f7698b1d1cb8fb92adb2ff6b17effd">SMSLookasideBase</a> + InitialSegmentSize);</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160; </div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <span class="keywordflow">return</span> ExInitializeZone(&amp;<a class="code" href="a00842.html#a15aab9f699bba774ac7bd51128484cb9">SMSLookasideZone</a>,</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;                            BlockSize,</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;                            <a class="code" href="a00842.html#aa9f7698b1d1cb8fb92adb2ff6b17effd">SMSLookasideBase</a>,</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;                            InitialSegmentSize);</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00842_source.html#l00028">SMSLookasideBase</a>, <a class="el" href="a00842_source.html#l00029">SMSLookasideBounds</a> , 以及 <a class="el" href="a00842_source.html#l00030">SMSLookasideZone</a>.</p>

</div>
</div>
<a id="a4a4a6ef58238afeb2930d10ed87d2853"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a4a6ef58238afeb2930d10ed87d2853">&#9670;&nbsp;</a></span>QueueNotifyMessage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QueueNotifyMessage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>wParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>lParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l00888">888</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00893"></a><span class="lineno">  893</span>&#160;{</div>
<div class="line"><a name="l00894"></a><span class="lineno">  894</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpwnd;</div>
<div class="line"><a name="l00895"></a><span class="lineno">  895</span>&#160; </div>
<div class="line"><a name="l00896"></a><span class="lineno">  896</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00897"></a><span class="lineno">  897</span>&#160;<span class="comment">     * We have to thread lock the window even though we don&#39;t leave</span></div>
<div class="line"><a name="l00898"></a><span class="lineno">  898</span>&#160;<span class="comment">     * the semaphore or else xxxSendMessageCallback complains</span></div>
<div class="line"><a name="l00899"></a><span class="lineno">  899</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00900"></a><span class="lineno">  900</span>&#160;    <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(pwnd, &amp;tlpwnd);</div>
<div class="line"><a name="l00901"></a><span class="lineno">  901</span>&#160;    <a class="code" href="a00842.html#acfe6f35d8e62e08d08e52a221f643c9d">xxxSendMessageCallback</a>(pwnd, message, wParam, lParam, NULL, 1L, 0);</div>
<div class="line"><a name="l00902"></a><span class="lineno">  902</span>&#160;    ThreadUnlock(&amp;tlpwnd);</div>
<div class="line"><a name="l00903"></a><span class="lineno">  903</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock()</a> , 以及 <a class="el" href="a00842_source.html#l01013">xxxSendMessageCallback()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03290_source.html#l05344">CancelInputState()</a>, <a class="el" href="a00812_source.html#l00936">DoQueuedSyncPaint()</a>, <a class="el" href="a00689_source.html#l00884">ResetDisplayDevice()</a> , 以及 <a class="el" href="a00686_source.html#l00310">xxxActivateApp()</a>.</p>

</div>
</div>
<a id="a4a6043207f9c1429e7022efbfa9f4086"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a6043207f9c1429e7022efbfa9f4086">&#9670;&nbsp;</a></span>ReceiverDied()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID ReceiverDied </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00899.html#a2bbc057c13dffc4e0b85dc00887d5ae3">PSMS</a>&#160;</td>
          <td class="paramname"><em>psms</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00899.html#a2bbc057c13dffc4e0b85dc00887d5ae3">PSMS</a> *&#160;</td>
          <td class="paramname"><em>ppsmsUnlink</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l02453">2453</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02456"></a><span class="lineno"> 2456</span>&#160;{</div>
<div class="line"><a name="l02457"></a><span class="lineno"> 2457</span>&#160;    <a class="code" href="a02945.html">PSMS</a> *ppsms;</div>
<div class="line"><a name="l02458"></a><span class="lineno"> 2458</span>&#160;    <a class="code" href="a02889.html">PTHREADINFO</a> ptiReceiver;</div>
<div class="line"><a name="l02459"></a><span class="lineno"> 2459</span>&#160;    <a class="code" href="a02889.html">PTHREADINFO</a> ptiSender;</div>
<div class="line"><a name="l02460"></a><span class="lineno"> 2460</span>&#160; </div>
<div class="line"><a name="l02461"></a><span class="lineno"> 2461</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02462"></a><span class="lineno"> 2462</span>&#160;<span class="comment">     * mark that the receiver died</span></div>
<div class="line"><a name="l02463"></a><span class="lineno"> 2463</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02464"></a><span class="lineno"> 2464</span>&#160;    ptiReceiver = psms-&gt;<a class="code" href="a02945.html#ad9cf28b93724ef783206c2b010f7202d">ptiReceiver</a>;</div>
<div class="line"><a name="l02465"></a><span class="lineno"> 2465</span>&#160;    psms-&gt;<a class="code" href="a02945.html#ad9cf28b93724ef783206c2b010f7202d">ptiReceiver</a> = NULL;</div>
<div class="line"><a name="l02466"></a><span class="lineno"> 2466</span>&#160;    psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= SMF_RECEIVERDIED;</div>
<div class="line"><a name="l02467"></a><span class="lineno"> 2467</span>&#160; </div>
<div class="line"><a name="l02468"></a><span class="lineno"> 2468</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02469"></a><span class="lineno"> 2469</span>&#160;<span class="comment">     * Unlink sms from thread if it is not dying.  We need to do</span></div>
<div class="line"><a name="l02470"></a><span class="lineno"> 2470</span>&#160;<span class="comment">     * this for journal cleanup.</span></div>
<div class="line"><a name="l02471"></a><span class="lineno"> 2471</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02472"></a><span class="lineno"> 2472</span>&#160;    <span class="keywordflow">if</span> (!(ptiReceiver-&gt;<a class="code" href="a02889.html#ae8b869ec5b101646649020f5b0fd5d0d">TIF_flags</a> &amp; TIF_INCLEANUP)) {</div>
<div class="line"><a name="l02473"></a><span class="lineno"> 2473</span>&#160; </div>
<div class="line"><a name="l02474"></a><span class="lineno"> 2474</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02475"></a><span class="lineno"> 2475</span>&#160;<span class="comment">         * unlink sms from the receiver&#39;s receive list</span></div>
<div class="line"><a name="l02476"></a><span class="lineno"> 2476</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02477"></a><span class="lineno"> 2477</span>&#160;        <span class="keywordflow">for</span> (ppsms = &amp;(ptiReceiver-&gt;<a class="code" href="a02889.html#aa58ea5e7644e85127ac49b6ab8880a12">psmsReceiveList</a>); *ppsms != NULL;</div>
<div class="line"><a name="l02478"></a><span class="lineno"> 2478</span>&#160;                    ppsms = &amp;((*ppsms)-&gt;psmsReceiveNext)) {</div>
<div class="line"><a name="l02479"></a><span class="lineno"> 2479</span>&#160; </div>
<div class="line"><a name="l02480"></a><span class="lineno"> 2480</span>&#160;            <span class="keywordflow">if</span> (*ppsms == psms) {</div>
<div class="line"><a name="l02481"></a><span class="lineno"> 2481</span>&#160;                *ppsms = psms-&gt;<a class="code" href="a02945.html#a27efa4726ffb5b422ea6d637046cc55a">psmsReceiveNext</a>;</div>
<div class="line"><a name="l02482"></a><span class="lineno"> 2482</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02483"></a><span class="lineno"> 2483</span>&#160;            }</div>
<div class="line"><a name="l02484"></a><span class="lineno"> 2484</span>&#160;        }</div>
<div class="line"><a name="l02485"></a><span class="lineno"> 2485</span>&#160; </div>
<div class="line"><a name="l02486"></a><span class="lineno"> 2486</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02487"></a><span class="lineno"> 2487</span>&#160;<span class="comment">         * clear the QS_SENDMESSAGE bit if there are no more messages</span></div>
<div class="line"><a name="l02488"></a><span class="lineno"> 2488</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02489"></a><span class="lineno"> 2489</span>&#160;        <span class="keywordflow">if</span> (ptiReceiver-&gt;<a class="code" href="a02889.html#aa58ea5e7644e85127ac49b6ab8880a12">psmsReceiveList</a> == NULL) {</div>
<div class="line"><a name="l02490"></a><span class="lineno"> 2490</span>&#160;            ptiReceiver-&gt;<a class="code" href="a02889.html#a6f56a147ff76c3fc48c358f05adb0473">pcti</a>-&gt;<a class="code" href="a02649.html#a1fc053b04d0e037452d1efb7426bd89c">fsWakeBits</a> &amp;= ~QS_SENDMESSAGE;</div>
<div class="line"><a name="l02491"></a><span class="lineno"> 2491</span>&#160;            ptiReceiver-&gt;<a class="code" href="a02889.html#a6f56a147ff76c3fc48c358f05adb0473">pcti</a>-&gt;<a class="code" href="a02649.html#a2fa9e5ed0186fa6f16c046d47f736ef2">fsChangeBits</a> &amp;= ~QS_SENDMESSAGE;</div>
<div class="line"><a name="l02492"></a><span class="lineno"> 2492</span>&#160;        }</div>
<div class="line"><a name="l02493"></a><span class="lineno"> 2493</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02494"></a><span class="lineno"> 2494</span>&#160; </div>
<div class="line"><a name="l02495"></a><span class="lineno"> 2495</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02496"></a><span class="lineno"> 2496</span>&#160;<span class="comment">         * The receiver thread is dying.  Clear the received flag</span></div>
<div class="line"><a name="l02497"></a><span class="lineno"> 2497</span>&#160;<span class="comment">         * so that if there is a sender, it will free the sms.</span></div>
<div class="line"><a name="l02498"></a><span class="lineno"> 2498</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02499"></a><span class="lineno"> 2499</span>&#160;        psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp;= ~SMF_RECEIVERBUSY;</div>
<div class="line"><a name="l02500"></a><span class="lineno"> 2500</span>&#160;    }</div>
<div class="line"><a name="l02501"></a><span class="lineno"> 2501</span>&#160; </div>
<div class="line"><a name="l02502"></a><span class="lineno"> 2502</span>&#160;    psms-&gt;<a class="code" href="a02945.html#a27efa4726ffb5b422ea6d637046cc55a">psmsReceiveNext</a> = NULL;</div>
<div class="line"><a name="l02503"></a><span class="lineno"> 2503</span>&#160; </div>
<div class="line"><a name="l02504"></a><span class="lineno"> 2504</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02505"></a><span class="lineno"> 2505</span>&#160;<span class="comment">     * Check if the sender died or if the receiver was marked to</span></div>
<div class="line"><a name="l02506"></a><span class="lineno"> 2506</span>&#160;<span class="comment">     * free the sms.</span></div>
<div class="line"><a name="l02507"></a><span class="lineno"> 2507</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02508"></a><span class="lineno"> 2508</span>&#160;    <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#af0d1e4ac0443bd32ed966f7e471183b8">ptiSender</a> == NULL) {</div>
<div class="line"><a name="l02509"></a><span class="lineno"> 2509</span>&#160; </div>
<div class="line"><a name="l02510"></a><span class="lineno"> 2510</span>&#160;        <span class="keywordflow">if</span> (!(psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_SENDERDIED) &amp;&amp;</div>
<div class="line"><a name="l02511"></a><span class="lineno"> 2511</span>&#160;                (psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; (SMF_CB_REQUEST | SMF_REPLY)) == SMF_CB_REQUEST) {</div>
<div class="line"><a name="l02512"></a><span class="lineno"> 2512</span>&#160; </div>
<div class="line"><a name="l02513"></a><span class="lineno"> 2513</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02514"></a><span class="lineno"> 2514</span>&#160;<span class="comment">             * From SendMessageCallback REQUEST callback.  Send the message</span></div>
<div class="line"><a name="l02515"></a><span class="lineno"> 2515</span>&#160;<span class="comment">             * back with a the REPLY value.</span></div>
<div class="line"><a name="l02516"></a><span class="lineno"> 2516</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02517"></a><span class="lineno"> 2517</span>&#160;            <a class="code" href="a01881.html">TL</a> tlpwnd;</div>
<div class="line"><a name="l02518"></a><span class="lineno"> 2518</span>&#160;            <a class="code" href="a02949.html">INTRSENDMSGEX</a> ism;</div>
<div class="line"><a name="l02519"></a><span class="lineno"> 2519</span>&#160; </div>
<div class="line"><a name="l02520"></a><span class="lineno"> 2520</span>&#160;            psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= SMF_REPLY;</div>
<div class="line"><a name="l02521"></a><span class="lineno"> 2521</span>&#160; </div>
<div class="line"><a name="l02522"></a><span class="lineno"> 2522</span>&#160;            ism.<a class="code" href="a02949.html#a547498bf050b0628b65f83ba9237ce84">fuCall</a> = ISM_CALLBACK | ISM_REPLY;</div>
<div class="line"><a name="l02523"></a><span class="lineno"> 2523</span>&#160;            <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_CB_CLIENT)</div>
<div class="line"><a name="l02524"></a><span class="lineno"> 2524</span>&#160;                ism.<a class="code" href="a02949.html#a547498bf050b0628b65f83ba9237ce84">fuCall</a> |= ISM_CB_CLIENT;</div>
<div class="line"><a name="l02525"></a><span class="lineno"> 2525</span>&#160;            ism.<a class="code" href="a02949.html#a7ee9bbcad17fb211571e22478070487e">lpResultCallBack</a> = psms-&gt;<a class="code" href="a02945.html#a7ee9bbcad17fb211571e22478070487e">lpResultCallBack</a>;</div>
<div class="line"><a name="l02526"></a><span class="lineno"> 2526</span>&#160;            ism.<a class="code" href="a02949.html#ad38b92af7d164a277eb2d30b5e65a489">dwData</a> = psms-&gt;<a class="code" href="a02945.html#ad38b92af7d164a277eb2d30b5e65a489">dwData</a>;</div>
<div class="line"><a name="l02527"></a><span class="lineno"> 2527</span>&#160;            ism.<a class="code" href="a02949.html#a3d5a6d1389eee512ee74e85d7d37988b">lRet</a> = 0L;    <span class="comment">/* null return */</span></div>
<div class="line"><a name="l02528"></a><span class="lineno"> 2528</span>&#160; </div>
<div class="line"><a name="l02529"></a><span class="lineno"> 2529</span>&#160;            <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, &amp;tlpwnd);</div>
<div class="line"><a name="l02530"></a><span class="lineno"> 2530</span>&#160; </div>
<div class="line"><a name="l02531"></a><span class="lineno"> 2531</span>&#160;            <a class="code" href="a00842.html#a9e53f556a04607e23d1b746d5274b952">xxxInterSendMsgEx</a>(psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, psms-&gt;<a class="code" href="a02945.html#a2878d2b3ecc6a3d2477bc260ee848675">message</a>, 0L, 0L,</div>
<div class="line"><a name="l02532"></a><span class="lineno"> 2532</span>&#160;                    NULL, psms-&gt;<a class="code" href="a02945.html#af1f37780572110e7cedfd3b27e4c6653">ptiCallBackSender</a>, &amp;ism );</div>
<div class="line"><a name="l02533"></a><span class="lineno"> 2533</span>&#160; </div>
<div class="line"><a name="l02534"></a><span class="lineno"> 2534</span>&#160;            ThreadUnlock(&amp;tlpwnd);</div>
<div class="line"><a name="l02535"></a><span class="lineno"> 2535</span>&#160;        }</div>
<div class="line"><a name="l02536"></a><span class="lineno"> 2536</span>&#160; </div>
<div class="line"><a name="l02537"></a><span class="lineno"> 2537</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02538"></a><span class="lineno"> 2538</span>&#160;<span class="comment">         * If the receiver is not processing the message, free it.</span></div>
<div class="line"><a name="l02539"></a><span class="lineno"> 2539</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02540"></a><span class="lineno"> 2540</span>&#160;        <span class="keywordflow">if</span> (!(psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_RECEIVERBUSY))</div>
<div class="line"><a name="l02541"></a><span class="lineno"> 2541</span>&#160;            <a class="code" href="a00842.html#aa38ed6c2085098ea4fb3fb3e84095bc3">UnlinkSendListSms</a>(psms, ppsmsUnlink);</div>
<div class="line"><a name="l02542"></a><span class="lineno"> 2542</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02543"></a><span class="lineno"> 2543</span>&#160; </div>
<div class="line"><a name="l02544"></a><span class="lineno"> 2544</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!(psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_REPLY)) {</div>
<div class="line"><a name="l02545"></a><span class="lineno"> 2545</span>&#160; </div>
<div class="line"><a name="l02546"></a><span class="lineno"> 2546</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02547"></a><span class="lineno"> 2547</span>&#160;<span class="comment">         * fake a reply</span></div>
<div class="line"><a name="l02548"></a><span class="lineno"> 2548</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02549"></a><span class="lineno"> 2549</span>&#160;        psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= SMF_REPLY;</div>
<div class="line"><a name="l02550"></a><span class="lineno"> 2550</span>&#160;        psms-&gt;<a class="code" href="a02945.html#a3d5a6d1389eee512ee74e85d7d37988b">lRet</a> = 0;</div>
<div class="line"><a name="l02551"></a><span class="lineno"> 2551</span>&#160;        psms-&gt;<a class="code" href="a02945.html#ad9cf28b93724ef783206c2b010f7202d">ptiReceiver</a> = NULL;</div>
<div class="line"><a name="l02552"></a><span class="lineno"> 2552</span>&#160; </div>
<div class="line"><a name="l02553"></a><span class="lineno"> 2553</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02554"></a><span class="lineno"> 2554</span>&#160;<span class="comment">         * wake the sender if he was waiting for us</span></div>
<div class="line"><a name="l02555"></a><span class="lineno"> 2555</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02556"></a><span class="lineno"> 2556</span>&#160;        <a class="code" href="a00824.html#a7a7fb081b27165c43974d89be67bbad8">SetWakeBit</a>(psms-&gt;<a class="code" href="a02945.html#af0d1e4ac0443bd32ed966f7e471183b8">ptiSender</a>, QS_SMSREPLY);</div>
<div class="line"><a name="l02557"></a><span class="lineno"> 2557</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02558"></a><span class="lineno"> 2558</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02559"></a><span class="lineno"> 2559</span>&#160;<span class="comment">         * There is a reply. We know the receiver is dying, so clear the</span></div>
<div class="line"><a name="l02560"></a><span class="lineno"> 2560</span>&#160;<span class="comment">         * SMF_RECEIVERFREE bit or the sender won&#39;t free this SMS!</span></div>
<div class="line"><a name="l02561"></a><span class="lineno"> 2561</span>&#160;<span class="comment">         * Although the sender&#39;s wake bit has already been set by the</span></div>
<div class="line"><a name="l02562"></a><span class="lineno"> 2562</span>&#160;<span class="comment">         * call to ClearSendMessages() earlier in the cleanup code,</span></div>
<div class="line"><a name="l02563"></a><span class="lineno"> 2563</span>&#160;<span class="comment">         * set it here again for safety.</span></div>
<div class="line"><a name="l02564"></a><span class="lineno"> 2564</span>&#160;<span class="comment">         *</span></div>
<div class="line"><a name="l02565"></a><span class="lineno"> 2565</span>&#160;<span class="comment">         * ??? Why would SMF_RECEIVERFREE be set?</span></div>
<div class="line"><a name="l02566"></a><span class="lineno"> 2566</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02567"></a><span class="lineno"> 2567</span>&#160;        psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp;= ~SMF_RECEIVERFREE;</div>
<div class="line"><a name="l02568"></a><span class="lineno"> 2568</span>&#160;        <a class="code" href="a00824.html#a7a7fb081b27165c43974d89be67bbad8">SetWakeBit</a>(psms-&gt;<a class="code" href="a02945.html#af0d1e4ac0443bd32ed966f7e471183b8">ptiSender</a>, QS_SMSREPLY);</div>
<div class="line"><a name="l02569"></a><span class="lineno"> 2569</span>&#160;    }</div>
<div class="line"><a name="l02570"></a><span class="lineno"> 2570</span>&#160; </div>
<div class="line"><a name="l02571"></a><span class="lineno"> 2571</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02572"></a><span class="lineno"> 2572</span>&#160;<span class="comment">     * If the sender is a WOW task, that task is now blocked in the non-</span></div>
<div class="line"><a name="l02573"></a><span class="lineno"> 2573</span>&#160;<span class="comment">     * preemptive scheduler waiting for a reply.  DestroyTask will</span></div>
<div class="line"><a name="l02574"></a><span class="lineno"> 2574</span>&#160;<span class="comment">     * clean this up (even if ptiReceiver is 32-bit).</span></div>
<div class="line"><a name="l02575"></a><span class="lineno"> 2575</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02576"></a><span class="lineno"> 2576</span>&#160;    ptiSender = psms-&gt;<a class="code" href="a02945.html#af0d1e4ac0443bd32ed966f7e471183b8">ptiSender</a>;</div>
<div class="line"><a name="l02577"></a><span class="lineno"> 2577</span>&#160;    <span class="keywordflow">if</span> (ptiSender-&gt;<a class="code" href="a02889.html#ae8b869ec5b101646649020f5b0fd5d0d">TIF_flags</a> &amp; TIF_16BIT) {</div>
<div class="line"><a name="l02578"></a><span class="lineno"> 2578</span>&#160;        <a class="code" href="a00881.html#a282d32ed2a8d185b9af16311b5e464b9">DirectedScheduleTask</a>(ptiReceiver, ptiSender, FALSE, psms);</div>
<div class="line"><a name="l02579"></a><span class="lineno"> 2579</span>&#160;    }</div>
<div class="line"><a name="l02580"></a><span class="lineno"> 2580</span>&#160; </div>
<div class="line"><a name="l02581"></a><span class="lineno"> 2581</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02582"></a><span class="lineno"> 2582</span>&#160;<span class="comment">     * Unlock this window from the sms: it is no longer needed, and will get</span></div>
<div class="line"><a name="l02583"></a><span class="lineno"> 2583</span>&#160;<span class="comment">     * rid of lock warnings.</span></div>
<div class="line"><a name="l02584"></a><span class="lineno"> 2584</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02585"></a><span class="lineno"> 2585</span>&#160;    Unlock(&amp;psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>);</div>
<div class="line"><a name="l02586"></a><span class="lineno"> 2586</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00881_source.html#l00575">DirectedScheduleTask()</a>, <a class="el" href="a00899_source.html#l02605">tagSMS::dwData</a>, <a class="el" href="a00899_source.html#l02643">tagINTERSENDMSGEX::dwData</a>, <a class="el" href="a00899_source.html#l02609">tagSMS::flags</a>, <a class="el" href="a00365_source.html#l02217">tagCLIENTTHREADINFO::fsChangeBits</a>, <a class="el" href="a00365_source.html#l02218">tagCLIENTTHREADINFO::fsWakeBits</a>, <a class="el" href="a00899_source.html#l02640">tagINTERSENDMSGEX::fuCall</a>, <a class="el" href="a00899_source.html#l02604">tagSMS::lpResultCallBack</a>, <a class="el" href="a00899_source.html#l02642">tagINTERSENDMSGEX::lpResultCallBack</a>, <a class="el" href="a00899_source.html#l02608">tagSMS::lRet</a>, <a class="el" href="a00899_source.html#l02644">tagINTERSENDMSGEX::lRet</a>, <a class="el" href="a00899_source.html#l02612">tagSMS::message</a>, <a class="el" href="a00899_source.html#l02280">tagTHREADINFO::pcti</a>, <a class="el" href="a00899_source.html#l02300">tagTHREADINFO::psmsReceiveList</a>, <a class="el" href="a00899_source.html#l02599">tagSMS::psmsReceiveNext</a>, <a class="el" href="a00899_source.html#l02606">tagSMS::ptiCallBackSender</a>, <a class="el" href="a00899_source.html#l02602">tagSMS::ptiReceiver</a>, <a class="el" href="a00899_source.html#l02601">tagSMS::ptiSender</a>, <a class="el" href="a00824_source.html#l03276">SetWakeBit()</a>, <a class="el" href="a00899_source.html#l02613">tagSMS::spwnd</a>, <a class="el" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock()</a>, <a class="el" href="a00899_source.html#l02294">tagTHREADINFO::TIF_flags</a>, <a class="el" href="a00842_source.html#l02689">UnlinkSendListSms()</a> , 以及 <a class="el" href="a00842_source.html#l01235">xxxInterSendMsgEx()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00701_source.html#l00125">InterQueueMsgCleanup()</a> , 以及 <a class="el" href="a00842_source.html#l02283">SendMsgCleanup()</a>.</p>

</div>
</div>
<a id="acab1ecbb6c75cb99acb278cd2451518d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acab1ecbb6c75cb99acb278cd2451518d">&#9670;&nbsp;</a></span>SenderDied()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID SenderDied </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00899.html#a2bbc057c13dffc4e0b85dc00887d5ae3">PSMS</a>&#160;</td>
          <td class="paramname"><em>psms</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00899.html#a2bbc057c13dffc4e0b85dc00887d5ae3">PSMS</a> *&#160;</td>
          <td class="paramname"><em>ppsmsUnlink</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l02599">2599</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02602"></a><span class="lineno"> 2602</span>&#160;{</div>
<div class="line"><a name="l02603"></a><span class="lineno"> 2603</span>&#160;    <a class="code" href="a02889.html">PTHREADINFO</a> ptiSender;</div>
<div class="line"><a name="l02604"></a><span class="lineno"> 2604</span>&#160;    BOOL fReply = FALSE;</div>
<div class="line"><a name="l02605"></a><span class="lineno"> 2605</span>&#160; </div>
<div class="line"><a name="l02606"></a><span class="lineno"> 2606</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02607"></a><span class="lineno"> 2607</span>&#160;<span class="comment">     * mark the death</span></div>
<div class="line"><a name="l02608"></a><span class="lineno"> 2608</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02609"></a><span class="lineno"> 2609</span>&#160;    <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#af0d1e4ac0443bd32ed966f7e471183b8">ptiSender</a> != NULL)</div>
<div class="line"><a name="l02610"></a><span class="lineno"> 2610</span>&#160;        ptiSender = psms-&gt;<a class="code" href="a02945.html#af0d1e4ac0443bd32ed966f7e471183b8">ptiSender</a>;</div>
<div class="line"><a name="l02611"></a><span class="lineno"> 2611</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l02612"></a><span class="lineno"> 2612</span>&#160;        ptiSender = psms-&gt;<a class="code" href="a02945.html#af1f37780572110e7cedfd3b27e4c6653">ptiCallBackSender</a>;</div>
<div class="line"><a name="l02613"></a><span class="lineno"> 2613</span>&#160;    psms-&gt;<a class="code" href="a02945.html#af0d1e4ac0443bd32ed966f7e471183b8">ptiSender</a> = NULL;</div>
<div class="line"><a name="l02614"></a><span class="lineno"> 2614</span>&#160;    psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= SMF_SENDERDIED;</div>
<div class="line"><a name="l02615"></a><span class="lineno"> 2615</span>&#160; </div>
<div class="line"><a name="l02616"></a><span class="lineno"> 2616</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02617"></a><span class="lineno"> 2617</span>&#160;<span class="comment">     * There are two cases where we leave the sms alone so the receiver</span></div>
<div class="line"><a name="l02618"></a><span class="lineno"> 2618</span>&#160;<span class="comment">     * can handle the message and then free the sms itself.</span></div>
<div class="line"><a name="l02619"></a><span class="lineno"> 2619</span>&#160;<span class="comment">     *</span></div>
<div class="line"><a name="l02620"></a><span class="lineno"> 2620</span>&#160;<span class="comment">     *  1.  When the receiver is processing the message.</span></div>
<div class="line"><a name="l02621"></a><span class="lineno"> 2621</span>&#160;<span class="comment">     *</span></div>
<div class="line"><a name="l02622"></a><span class="lineno"> 2622</span>&#160;<span class="comment">     *  2.  When the message has not yet been received.</span></div>
<div class="line"><a name="l02623"></a><span class="lineno"> 2623</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02624"></a><span class="lineno"> 2624</span>&#160; </div>
<div class="line"><a name="l02625"></a><span class="lineno"> 2625</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02626"></a><span class="lineno"> 2626</span>&#160;<span class="comment">     * If the receiver is processing the message, make it free the sms.</span></div>
<div class="line"><a name="l02627"></a><span class="lineno"> 2627</span>&#160;<span class="comment">     * Fake a reply for journal cancel.</span></div>
<div class="line"><a name="l02628"></a><span class="lineno"> 2628</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02629"></a><span class="lineno"> 2629</span>&#160;    <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_RECEIVERBUSY) {</div>
<div class="line"><a name="l02630"></a><span class="lineno"> 2630</span>&#160;        psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= SMF_RECEIVERFREE;</div>
<div class="line"><a name="l02631"></a><span class="lineno"> 2631</span>&#160;        fReply = TRUE;</div>
<div class="line"><a name="l02632"></a><span class="lineno"> 2632</span>&#160;    }</div>
<div class="line"><a name="l02633"></a><span class="lineno"> 2633</span>&#160; </div>
<div class="line"><a name="l02634"></a><span class="lineno"> 2634</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02635"></a><span class="lineno"> 2635</span>&#160;<span class="comment">     * This sms may be in the process of being sent, but has not yet</span></div>
<div class="line"><a name="l02636"></a><span class="lineno"> 2636</span>&#160;<span class="comment">     * been received.  In so, fake a reply and wake the sender.</span></div>
<div class="line"><a name="l02637"></a><span class="lineno"> 2637</span>&#160;<span class="comment">     * The last thread to touch the sms, either the sender or</span></div>
<div class="line"><a name="l02638"></a><span class="lineno"> 2638</span>&#160;<span class="comment">     * receiver, will free the sms.</span></div>
<div class="line"><a name="l02639"></a><span class="lineno"> 2639</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02640"></a><span class="lineno"> 2640</span>&#160;    <span class="keywordflow">if</span> (ptiSender-&gt;<a class="code" href="a02889.html#a9e9fc9ec28f5b2ebac921b669df50531">psmsSent</a> == psms)</div>
<div class="line"><a name="l02641"></a><span class="lineno"> 2641</span>&#160;        fReply = TRUE;</div>
<div class="line"><a name="l02642"></a><span class="lineno"> 2642</span>&#160; </div>
<div class="line"><a name="l02643"></a><span class="lineno"> 2643</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02644"></a><span class="lineno"> 2644</span>&#160;<span class="comment">     * If journalling is being cancelled and reply needs to be made,</span></div>
<div class="line"><a name="l02645"></a><span class="lineno"> 2645</span>&#160;<span class="comment">     * fake a reply and return.</span></div>
<div class="line"><a name="l02646"></a><span class="lineno"> 2646</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02647"></a><span class="lineno"> 2647</span>&#160;    <span class="keywordflow">if</span> (!(ptiSender-&gt;<a class="code" href="a02889.html#ae8b869ec5b101646649020f5b0fd5d0d">TIF_flags</a> &amp; TIF_INCLEANUP) &amp;&amp; fReply) {</div>
<div class="line"><a name="l02648"></a><span class="lineno"> 2648</span>&#160; </div>
<div class="line"><a name="l02649"></a><span class="lineno"> 2649</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02650"></a><span class="lineno"> 2650</span>&#160;<span class="comment">         * fake a reply</span></div>
<div class="line"><a name="l02651"></a><span class="lineno"> 2651</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02652"></a><span class="lineno"> 2652</span>&#160;        psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= SMF_REPLY;</div>
<div class="line"><a name="l02653"></a><span class="lineno"> 2653</span>&#160;        psms-&gt;<a class="code" href="a02945.html#a3d5a6d1389eee512ee74e85d7d37988b">lRet</a> = 0;</div>
<div class="line"><a name="l02654"></a><span class="lineno"> 2654</span>&#160; </div>
<div class="line"><a name="l02655"></a><span class="lineno"> 2655</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02656"></a><span class="lineno"> 2656</span>&#160;<span class="comment">         * wake the sender if he was waiting for us</span></div>
<div class="line"><a name="l02657"></a><span class="lineno"> 2657</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02658"></a><span class="lineno"> 2658</span>&#160;        <a class="code" href="a00824.html#a7a7fb081b27165c43974d89be67bbad8">SetWakeBit</a>(ptiSender, QS_SMSREPLY);</div>
<div class="line"><a name="l02659"></a><span class="lineno"> 2659</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02660"></a><span class="lineno"> 2660</span>&#160;    }</div>
<div class="line"><a name="l02661"></a><span class="lineno"> 2661</span>&#160; </div>
<div class="line"><a name="l02662"></a><span class="lineno"> 2662</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02663"></a><span class="lineno"> 2663</span>&#160;<span class="comment">     * If the receiver isn&#39;t dead, check to see if it has honestly replied to</span></div>
<div class="line"><a name="l02664"></a><span class="lineno"> 2664</span>&#160;<span class="comment">     * this SMS. If it has not replied, leave it alone so the receiver can</span></div>
<div class="line"><a name="l02665"></a><span class="lineno"> 2665</span>&#160;<span class="comment">     * reply to it (it&#39;ll then clean it up). If it has replied, then it&#39;s</span></div>
<div class="line"><a name="l02666"></a><span class="lineno"> 2666</span>&#160;<span class="comment">     * ok to free it.</span></div>
<div class="line"><a name="l02667"></a><span class="lineno"> 2667</span>&#160;<span class="comment">     *</span></div>
<div class="line"><a name="l02668"></a><span class="lineno"> 2668</span>&#160;<span class="comment">     * It is also ok to free it if the receiver is dead.</span></div>
<div class="line"><a name="l02669"></a><span class="lineno"> 2669</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02670"></a><span class="lineno"> 2670</span>&#160;    <span class="keywordflow">if</span> ((psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_RECEIVERDIED) ||</div>
<div class="line"><a name="l02671"></a><span class="lineno"> 2671</span>&#160;            (psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; (SMF_REPLY | SMF_RECEIVERFREE)) == SMF_REPLY) {</div>
<div class="line"><a name="l02672"></a><span class="lineno"> 2672</span>&#160;        <a class="code" href="a00842.html#aa38ed6c2085098ea4fb3fb3e84095bc3">UnlinkSendListSms</a>(psms, ppsmsUnlink);</div>
<div class="line"><a name="l02673"></a><span class="lineno"> 2673</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02674"></a><span class="lineno"> 2674</span>&#160;        psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= SMF_RECEIVERFREE;</div>
<div class="line"><a name="l02675"></a><span class="lineno"> 2675</span>&#160;    }</div>
<div class="line"><a name="l02676"></a><span class="lineno"> 2676</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899_source.html#l02609">tagSMS::flags</a>, <a class="el" href="a00899_source.html#l02608">tagSMS::lRet</a>, <a class="el" href="a00899_source.html#l02298">tagTHREADINFO::psmsSent</a>, <a class="el" href="a00899_source.html#l02606">tagSMS::ptiCallBackSender</a>, <a class="el" href="a00899_source.html#l02601">tagSMS::ptiSender</a>, <a class="el" href="a00824_source.html#l03276">SetWakeBit()</a>, <a class="el" href="a00899_source.html#l02294">tagTHREADINFO::TIF_flags</a> , 以及 <a class="el" href="a00842_source.html#l02689">UnlinkSendListSms()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00842_source.html#l02283">SendMsgCleanup()</a>.</p>

</div>
</div>
<a id="af793abfba936a5b6bdca9f922db92874"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af793abfba936a5b6bdca9f922db92874">&#9670;&nbsp;</a></span>SendMsgCleanup()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID SendMsgCleanup </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a177dce23f2b497ba8dc22f5a92d3f3d3">PTHREADINFO</a>&#160;</td>
          <td class="paramname"><em>ptiCurrent</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l02283">2283</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02285"></a><span class="lineno"> 2285</span>&#160;{</div>
<div class="line"><a name="l02286"></a><span class="lineno"> 2286</span>&#160;    <a class="code" href="a02945.html">PSMS</a> *ppsms;</div>
<div class="line"><a name="l02287"></a><span class="lineno"> 2287</span>&#160;    <a class="code" href="a02945.html">PSMS</a> psmsNext;</div>
<div class="line"><a name="l02288"></a><span class="lineno"> 2288</span>&#160; </div>
<div class="line"><a name="l02289"></a><span class="lineno"> 2289</span>&#160;    CheckCritIn();</div>
<div class="line"><a name="l02290"></a><span class="lineno"> 2290</span>&#160; </div>
<div class="line"><a name="l02291"></a><span class="lineno"> 2291</span>&#160;    <span class="keywordflow">for</span> (ppsms = &amp;<a class="code" href="a03257.html#a8f31d83ac0a205f71d1ef0bf7c64ed8b">gpsmsList</a>; *ppsms; ) {</div>
<div class="line"><a name="l02292"></a><span class="lineno"> 2292</span>&#160;        psmsNext = (*ppsms)-&gt;<a class="code" href="a02945.html#a08fcc422c6f01bad78bfd4c9c9e4ddb6">psmsNext</a>;</div>
<div class="line"><a name="l02293"></a><span class="lineno"> 2293</span>&#160; </div>
<div class="line"><a name="l02294"></a><span class="lineno"> 2294</span>&#160;        <span class="keywordflow">if</span> ((*ppsms)-&gt;ptiSender == ptiCurrent ||</div>
<div class="line"><a name="l02295"></a><span class="lineno"> 2295</span>&#160;                (*ppsms)-&gt;ptiCallBackSender == ptiCurrent) {</div>
<div class="line"><a name="l02296"></a><span class="lineno"> 2296</span>&#160;            <a class="code" href="a00842.html#acab1ecbb6c75cb99acb278cd2451518d">SenderDied</a>(*ppsms, ppsms);</div>
<div class="line"><a name="l02297"></a><span class="lineno"> 2297</span>&#160;        } <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((*ppsms)-&gt;ptiReceiver == ptiCurrent) {</div>
<div class="line"><a name="l02298"></a><span class="lineno"> 2298</span>&#160;            <a class="code" href="a00842.html#a4a6043207f9c1429e7022efbfa9f4086">ReceiverDied</a>(*ppsms, ppsms);</div>
<div class="line"><a name="l02299"></a><span class="lineno"> 2299</span>&#160;        }</div>
<div class="line"><a name="l02300"></a><span class="lineno"> 2300</span>&#160; </div>
<div class="line"><a name="l02301"></a><span class="lineno"> 2301</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02302"></a><span class="lineno"> 2302</span>&#160;<span class="comment">         * If the message was not unlinked, go to the next one.</span></div>
<div class="line"><a name="l02303"></a><span class="lineno"> 2303</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02304"></a><span class="lineno"> 2304</span>&#160;        <span class="keywordflow">if</span> (*ppsms != psmsNext)</div>
<div class="line"><a name="l02305"></a><span class="lineno"> 2305</span>&#160;            ppsms = &amp;(*ppsms)-&gt;<a class="code" href="a02945.html#a08fcc422c6f01bad78bfd4c9c9e4ddb6">psmsNext</a>;</div>
<div class="line"><a name="l02306"></a><span class="lineno"> 2306</span>&#160;    }</div>
<div class="line"><a name="l02307"></a><span class="lineno"> 2307</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03257_source.html#l00174">gpsmsList</a>, <a class="el" href="a00899_source.html#l02594">tagSMS::psmsNext</a>, <a class="el" href="a00842_source.html#l02453">ReceiverDied()</a> , 以及 <a class="el" href="a00842_source.html#l02599">SenderDied()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00701_source.html#l00190">CancelJournalling()</a> , 以及 <a class="el" href="a00824_source.html#l01766">xxxDestroyThreadInfo()</a>.</p>

</div>
</div>
<a id="aa38ed6c2085098ea4fb3fb3e84095bc3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa38ed6c2085098ea4fb3fb3e84095bc3">&#9670;&nbsp;</a></span>UnlinkSendListSms()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID UnlinkSendListSms </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00899.html#a2bbc057c13dffc4e0b85dc00887d5ae3">PSMS</a>&#160;</td>
          <td class="paramname"><em>psms</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00899.html#a2bbc057c13dffc4e0b85dc00887d5ae3">PSMS</a> *&#160;</td>
          <td class="paramname"><em>ppsmsUnlink</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l02689">2689</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02692"></a><span class="lineno"> 2692</span>&#160;{</div>
<div class="line"><a name="l02693"></a><span class="lineno"> 2693</span>&#160;<span class="preprocessor">#if DBG</span></div>
<div class="line"><a name="l02694"></a><span class="lineno"> 2694</span>&#160;    <a class="code" href="a02945.html">PSMS</a> psmsT;</div>
<div class="line"><a name="l02695"></a><span class="lineno"> 2695</span>&#160;    BOOL fUpdateSendList;</div>
<div class="line"><a name="l02696"></a><span class="lineno"> 2696</span>&#160;    <a class="code" href="a02945.html">PSMS</a> *ppsms;</div>
<div class="line"><a name="l02697"></a><span class="lineno"> 2697</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l02698"></a><span class="lineno"> 2698</span>&#160; </div>
<div class="line"><a name="l02699"></a><span class="lineno"> 2699</span>&#160;    CheckCritIn();</div>
<div class="line"><a name="l02700"></a><span class="lineno"> 2700</span>&#160; </div>
<div class="line"><a name="l02701"></a><span class="lineno"> 2701</span>&#160;<span class="preprocessor">#ifdef DEBUG_SMS</span></div>
<div class="line"><a name="l02702"></a><span class="lineno"> 2702</span>&#160;    ValidateSmsSendLists(psms);</div>
<div class="line"><a name="l02703"></a><span class="lineno"> 2703</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l02704"></a><span class="lineno"> 2704</span>&#160; </div>
<div class="line"><a name="l02705"></a><span class="lineno"> 2705</span>&#160;    <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(psms-&gt;<a class="code" href="a02945.html#a27efa4726ffb5b422ea6d637046cc55a">psmsReceiveNext</a> == NULL);</div>
<div class="line"><a name="l02706"></a><span class="lineno"> 2706</span>&#160; </div>
<div class="line"><a name="l02707"></a><span class="lineno"> 2707</span>&#160;<span class="preprocessor">#if DBG</span></div>
<div class="line"><a name="l02708"></a><span class="lineno"> 2708</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02709"></a><span class="lineno"> 2709</span>&#160;<span class="comment">     * Remember ahead of time if the psms we&#39;re unlinking is also the</span></div>
<div class="line"><a name="l02710"></a><span class="lineno"> 2710</span>&#160;<span class="comment">     * head of the sms send list (so we know if we need to update this field</span></div>
<div class="line"><a name="l02711"></a><span class="lineno"> 2711</span>&#160;<span class="comment">     * member in every SMS in this list).</span></div>
<div class="line"><a name="l02712"></a><span class="lineno"> 2712</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02713"></a><span class="lineno"> 2713</span>&#160;    fUpdateSendList = (psms == psms-&gt;<a class="code" href="a02945.html#a037f5951f037130a39c9fd550487f6ef">psmsSendList</a>);</div>
<div class="line"><a name="l02714"></a><span class="lineno"> 2714</span>&#160; </div>
<div class="line"><a name="l02715"></a><span class="lineno"> 2715</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02716"></a><span class="lineno"> 2716</span>&#160;<span class="comment">     * Unlink sms from the sendlist chain. This effectively unlinks the SMS</span></div>
<div class="line"><a name="l02717"></a><span class="lineno"> 2717</span>&#160;<span class="comment">     * and updates psms-&gt;psmsSendList with the right head....</span></div>
<div class="line"><a name="l02718"></a><span class="lineno"> 2718</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02719"></a><span class="lineno"> 2719</span>&#160;    ppsms = &amp;(psms-&gt;<a class="code" href="a02945.html#a037f5951f037130a39c9fd550487f6ef">psmsSendList</a>);</div>
<div class="line"><a name="l02720"></a><span class="lineno"> 2720</span>&#160;    <span class="keywordflow">while</span> (*ppsms != NULL) {</div>
<div class="line"><a name="l02721"></a><span class="lineno"> 2721</span>&#160;        <span class="keywordflow">if</span> (*ppsms == psms) {</div>
<div class="line"><a name="l02722"></a><span class="lineno"> 2722</span>&#160;            *ppsms = psms-&gt;<a class="code" href="a02945.html#a157200d5cba7c1522e8f64c602d7ea7b">psmsSendNext</a>;</div>
<div class="line"><a name="l02723"></a><span class="lineno"> 2723</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02724"></a><span class="lineno"> 2724</span>&#160;        }</div>
<div class="line"><a name="l02725"></a><span class="lineno"> 2725</span>&#160;        ppsms = &amp;(*ppsms)-&gt;<a class="code" href="a02945.html#a157200d5cba7c1522e8f64c602d7ea7b">psmsSendNext</a>;</div>
<div class="line"><a name="l02726"></a><span class="lineno"> 2726</span>&#160;    }</div>
<div class="line"><a name="l02727"></a><span class="lineno"> 2727</span>&#160; </div>
<div class="line"><a name="l02728"></a><span class="lineno"> 2728</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02729"></a><span class="lineno"> 2729</span>&#160;<span class="comment">     * Update psmsSendList if necessary. psms-&gt;psmsSendList has been updated</span></div>
<div class="line"><a name="l02730"></a><span class="lineno"> 2730</span>&#160;<span class="comment">     * with the right sms send list head... distribute this head to all other</span></div>
<div class="line"><a name="l02731"></a><span class="lineno"> 2731</span>&#160;<span class="comment">     * sms&#39;s in this chain if this sms we&#39;re removing the current head.</span></div>
<div class="line"><a name="l02732"></a><span class="lineno"> 2732</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02733"></a><span class="lineno"> 2733</span>&#160;    <span class="keywordflow">if</span> (fUpdateSendList) {</div>
<div class="line"><a name="l02734"></a><span class="lineno"> 2734</span>&#160;        <span class="keywordflow">for</span> (psmsT = psms-&gt;<a class="code" href="a02945.html#a037f5951f037130a39c9fd550487f6ef">psmsSendList</a>; psmsT != NULL;</div>
<div class="line"><a name="l02735"></a><span class="lineno"> 2735</span>&#160;                psmsT = psmsT-&gt;<a class="code" href="a02945.html#a157200d5cba7c1522e8f64c602d7ea7b">psmsSendNext</a>) {</div>
<div class="line"><a name="l02736"></a><span class="lineno"> 2736</span>&#160;            psmsT-&gt;<a class="code" href="a02945.html#a037f5951f037130a39c9fd550487f6ef">psmsSendList</a> = psms-&gt;<a class="code" href="a02945.html#a037f5951f037130a39c9fd550487f6ef">psmsSendList</a>;</div>
<div class="line"><a name="l02737"></a><span class="lineno"> 2737</span>&#160;        }</div>
<div class="line"><a name="l02738"></a><span class="lineno"> 2738</span>&#160;    }</div>
<div class="line"><a name="l02739"></a><span class="lineno"> 2739</span>&#160; </div>
<div class="line"><a name="l02740"></a><span class="lineno"> 2740</span>&#160;    psms-&gt;<a class="code" href="a02945.html#a037f5951f037130a39c9fd550487f6ef">psmsSendList</a> = NULL;</div>
<div class="line"><a name="l02741"></a><span class="lineno"> 2741</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l02742"></a><span class="lineno"> 2742</span>&#160; </div>
<div class="line"><a name="l02743"></a><span class="lineno"> 2743</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02744"></a><span class="lineno"> 2744</span>&#160;<span class="comment">     * This unlinks an sms structure from the global gpsmsList and frees it.</span></div>
<div class="line"><a name="l02745"></a><span class="lineno"> 2745</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02746"></a><span class="lineno"> 2746</span>&#160;    <span class="keywordflow">if</span> (ppsmsUnlink == NULL) {</div>
<div class="line"><a name="l02747"></a><span class="lineno"> 2747</span>&#160;        ppsmsUnlink = &amp;<a class="code" href="a03257.html#a8f31d83ac0a205f71d1ef0bf7c64ed8b">gpsmsList</a>;</div>
<div class="line"><a name="l02748"></a><span class="lineno"> 2748</span>&#160; </div>
<div class="line"><a name="l02749"></a><span class="lineno"> 2749</span>&#160;        <span class="keywordflow">while</span> (*ppsmsUnlink &amp;&amp; (*ppsmsUnlink != psms)) {</div>
<div class="line"><a name="l02750"></a><span class="lineno"> 2750</span>&#160;            ppsmsUnlink = &amp;((*ppsmsUnlink)-&gt;psmsNext);</div>
<div class="line"><a name="l02751"></a><span class="lineno"> 2751</span>&#160;        }</div>
<div class="line"><a name="l02752"></a><span class="lineno"> 2752</span>&#160;    }</div>
<div class="line"><a name="l02753"></a><span class="lineno"> 2753</span>&#160; </div>
<div class="line"><a name="l02754"></a><span class="lineno"> 2754</span>&#160;    <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(*ppsmsUnlink);</div>
<div class="line"><a name="l02755"></a><span class="lineno"> 2755</span>&#160; </div>
<div class="line"><a name="l02756"></a><span class="lineno"> 2756</span>&#160;    *ppsmsUnlink = psms-&gt;<a class="code" href="a02945.html#a08fcc422c6f01bad78bfd4c9c9e4ddb6">psmsNext</a>;</div>
<div class="line"><a name="l02757"></a><span class="lineno"> 2757</span>&#160; </div>
<div class="line"><a name="l02758"></a><span class="lineno"> 2758</span>&#160;    Unlock(&amp;psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>);</div>
<div class="line"><a name="l02759"></a><span class="lineno"> 2759</span>&#160; </div>
<div class="line"><a name="l02760"></a><span class="lineno"> 2760</span>&#160;<span class="preprocessor">#if DBG</span></div>
<div class="line"><a name="l02761"></a><span class="lineno"> 2761</span>&#160;    <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(!(psms == psms-&gt;<a class="code" href="a02945.html#a037f5951f037130a39c9fd550487f6ef">psmsSendList</a> &amp;&amp; psms-&gt;<a class="code" href="a02945.html#a157200d5cba7c1522e8f64c602d7ea7b">psmsSendNext</a> != NULL));</div>
<div class="line"><a name="l02762"></a><span class="lineno"> 2762</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l02763"></a><span class="lineno"> 2763</span>&#160; </div>
<div class="line"><a name="l02764"></a><span class="lineno"> 2764</span>&#160;    <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a>)</div>
<div class="line"><a name="l02765"></a><span class="lineno"> 2765</span>&#160;        UserFreePool(psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a>);</div>
<div class="line"><a name="l02766"></a><span class="lineno"> 2766</span>&#160; </div>
<div class="line"><a name="l02767"></a><span class="lineno"> 2767</span>&#160;    <a class="code" href="a00842.html#a5e2cf05ab05318fd5654f254de252686">FreeSMS</a>(psms);</div>
<div class="line"><a name="l02768"></a><span class="lineno"> 2768</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00842_source.html#l00193">FreeSMS()</a>, <a class="el" href="a03257_source.html#l00174">gpsmsList</a>, <a class="el" href="a00899_source.html#l02594">tagSMS::psmsNext</a>, <a class="el" href="a00899_source.html#l02599">tagSMS::psmsReceiveNext</a>, <a class="el" href="a00899_source.html#l02596">tagSMS::psmsSendList</a>, <a class="el" href="a00899_source.html#l02597">tagSMS::psmsSendNext</a>, <a class="el" href="a00899_source.html#l02614">tagSMS::pvCapture</a>, <a class="el" href="a00899_source.html#l02613">tagSMS::spwnd</a> , 以及 <a class="el" href="a00950_source.html#l00117">UserAssert</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00842_source.html#l02453">ReceiverDied()</a>, <a class="el" href="a00842_source.html#l02599">SenderDied()</a>, <a class="el" href="a00842_source.html#l01235">xxxInterSendMsgEx()</a> , 以及 <a class="el" href="a00842_source.html#l01876">xxxReceiveMessage()</a>.</p>

</div>
</div>
<a id="adb5204decd255d5005372b2c12890113"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb5204decd255d5005372b2c12890113">&#9670;&nbsp;</a></span>xxxBroadcastMessage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LONG xxxBroadcastMessage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>wParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>lParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>wCmd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00899.html#a16be71707541ebaec57302d4bdc19b2a">PBROADCASTMSG</a>&#160;</td>
          <td class="paramname"><em>pbcm</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l02898">2898</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02905"></a><span class="lineno"> 2905</span>&#160;{</div>
<div class="line"><a name="l02906"></a><span class="lineno"> 2906</span>&#160;    <a class="code" href="a02913.html">PBWL</a> pbwl;</div>
<div class="line"><a name="l02907"></a><span class="lineno"> 2907</span>&#160;    HWND *phwnd;</div>
<div class="line"><a name="l02908"></a><span class="lineno"> 2908</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpwnd;</div>
<div class="line"><a name="l02909"></a><span class="lineno"> 2909</span>&#160;    <a class="code" href="a02953.html">PASYNCSENDMSG</a> pmsg;</div>
<div class="line"><a name="l02910"></a><span class="lineno"> 2910</span>&#160;    <a class="code" href="a02905.html">PPROCESSINFO</a> ppiCurrent;</div>
<div class="line"><a name="l02911"></a><span class="lineno"> 2911</span>&#160;    LONG lRet = TRUE;</div>
<div class="line"><a name="l02912"></a><span class="lineno"> 2912</span>&#160;    <a class="code" href="a01881.html">TL</a> tlPool;</div>
<div class="line"><a name="l02913"></a><span class="lineno"> 2913</span>&#160;    <a class="code" href="a02889.html">PTHREADINFO</a> pti;</div>
<div class="line"><a name="l02914"></a><span class="lineno"> 2914</span>&#160; </div>
<div class="line"><a name="l02915"></a><span class="lineno"> 2915</span>&#160;    <span class="keywordflow">if</span> (pwnd == NULL) {</div>
<div class="line"><a name="l02916"></a><span class="lineno"> 2916</span>&#160;        <a class="code" href="a02457.html">LARGE_UNICODE_STRING</a> str;</div>
<div class="line"><a name="l02917"></a><span class="lineno"> 2917</span>&#160;        <a class="code" href="a02449.html">PLARGE_STRING</a> pstr;</div>
<div class="line"><a name="l02918"></a><span class="lineno"> 2918</span>&#160; </div>
<div class="line"><a name="l02919"></a><span class="lineno"> 2919</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02920"></a><span class="lineno"> 2920</span>&#160;<span class="comment">         * Handle special system-wide broadcasts.</span></div>
<div class="line"><a name="l02921"></a><span class="lineno"> 2921</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02922"></a><span class="lineno"> 2922</span>&#160;        <span class="keywordflow">switch</span> (message) {</div>
<div class="line"><a name="l02923"></a><span class="lineno"> 2923</span>&#160;        <span class="keywordflow">case</span> WM_SPOOLERSTATUS:</div>
<div class="line"><a name="l02924"></a><span class="lineno"> 2924</span>&#160;            <a class="code" href="a00842.html#ac6cbd728d486a3a91e1b5d3181ab07aa">xxxSystemBroadcastMessage</a>(message, wParam, lParam, wCmd, pbcm);</div>
<div class="line"><a name="l02925"></a><span class="lineno"> 2925</span>&#160;            <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l02926"></a><span class="lineno"> 2926</span>&#160; </div>
<div class="line"><a name="l02927"></a><span class="lineno"> 2927</span>&#160;        <span class="keywordflow">case</span> WM_WININICHANGE:</div>
<div class="line"><a name="l02928"></a><span class="lineno"> 2928</span>&#160;        <span class="keywordflow">case</span> WM_DEVMODECHANGE:</div>
<div class="line"><a name="l02929"></a><span class="lineno"> 2929</span>&#160; </div>
<div class="line"><a name="l02930"></a><span class="lineno"> 2930</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02931"></a><span class="lineno"> 2931</span>&#160;<span class="comment">             * Probe and capture the string.</span></div>
<div class="line"><a name="l02932"></a><span class="lineno"> 2932</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02933"></a><span class="lineno"> 2933</span>&#160;            <span class="keywordflow">if</span> (lParam) {</div>
<div class="line"><a name="l02934"></a><span class="lineno"> 2934</span>&#160;                <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> <a class="code" href="a00719.html#a0d8ef5056a80a305334bd6c49dfbe32a">cbAlloc</a>;</div>
<div class="line"><a name="l02935"></a><span class="lineno"> 2935</span>&#160;                NTSTATUS Status;</div>
<div class="line"><a name="l02936"></a><span class="lineno"> 2936</span>&#160; </div>
<div class="line"><a name="l02937"></a><span class="lineno"> 2937</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l02938"></a><span class="lineno"> 2938</span>&#160;<span class="comment">                 * Allocate a temp buffer and convert</span></div>
<div class="line"><a name="l02939"></a><span class="lineno"> 2939</span>&#160;<span class="comment">                 * the string to Unicode</span></div>
<div class="line"><a name="l02940"></a><span class="lineno"> 2940</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l02941"></a><span class="lineno"> 2941</span>&#160;                pstr = ((<a class="code" href="a00365.html#aa453bfba298bc156c84c4a04a89b4436">PLARGE_STRING</a>)lParam);</div>
<div class="line"><a name="l02942"></a><span class="lineno"> 2942</span>&#160;                <span class="keywordflow">if</span> (pstr-&gt;<a class="code" href="a02449.html#af4ab07640de8950ca1f439bb34be4b53">bAnsi</a>)</div>
<div class="line"><a name="l02943"></a><span class="lineno"> 2943</span>&#160;                    <a class="code" href="a00719.html#a0d8ef5056a80a305334bd6c49dfbe32a">cbAlloc</a> = (pstr-&gt;<a class="code" href="a02449.html#abfb371817eb1c8f0d8a165bb2b798092">Length</a> + 1) * <span class="keyword">sizeof</span>(WCHAR);</div>
<div class="line"><a name="l02944"></a><span class="lineno"> 2944</span>&#160;                <span class="keywordflow">else</span></div>
<div class="line"><a name="l02945"></a><span class="lineno"> 2945</span>&#160;                    <a class="code" href="a00719.html#a0d8ef5056a80a305334bd6c49dfbe32a">cbAlloc</a> = pstr-&gt;<a class="code" href="a02449.html#abfb371817eb1c8f0d8a165bb2b798092">Length</a> + <span class="keyword">sizeof</span>(WCHAR);</div>
<div class="line"><a name="l02946"></a><span class="lineno"> 2946</span>&#160;                str.<a class="code" href="a02457.html#a99314e2f6ea6b552b9538bbe7b7e64ba">Buffer</a> = UserAllocPoolWithQuota(<a class="code" href="a00719.html#a0d8ef5056a80a305334bd6c49dfbe32a">cbAlloc</a>, TAG_SMS);</div>
<div class="line"><a name="l02947"></a><span class="lineno"> 2947</span>&#160;                <span class="keywordflow">if</span> (str.<a class="code" href="a02457.html#a99314e2f6ea6b552b9538bbe7b7e64ba">Buffer</a> == NULL) {</div>
<div class="line"><a name="l02948"></a><span class="lineno"> 2948</span>&#160;                    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l02949"></a><span class="lineno"> 2949</span>&#160;                }</div>
<div class="line"><a name="l02950"></a><span class="lineno"> 2950</span>&#160;                str.<a class="code" href="a02457.html#ad355c4270a8465c419a47e3e68098cf1">MaximumLength</a> = <a class="code" href="a00719.html#a0d8ef5056a80a305334bd6c49dfbe32a">cbAlloc</a>;</div>
<div class="line"><a name="l02951"></a><span class="lineno"> 2951</span>&#160;                str.<a class="code" href="a02457.html#af4ab07640de8950ca1f439bb34be4b53">bAnsi</a> = FALSE;</div>
<div class="line"><a name="l02952"></a><span class="lineno"> 2952</span>&#160;                <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l02953"></a><span class="lineno"> 2953</span>&#160;                    <span class="keywordflow">if</span> (pstr-&gt;<a class="code" href="a02449.html#af4ab07640de8950ca1f439bb34be4b53">bAnsi</a>) {</div>
<div class="line"><a name="l02954"></a><span class="lineno"> 2954</span>&#160;                        Status = RtlMultiByteToUnicodeN(</div>
<div class="line"><a name="l02955"></a><span class="lineno"> 2955</span>&#160;                                        (PWCH)str.<a class="code" href="a02457.html#a99314e2f6ea6b552b9538bbe7b7e64ba">Buffer</a>,</div>
<div class="line"><a name="l02956"></a><span class="lineno"> 2956</span>&#160;                                        <a class="code" href="a00719.html#a0d8ef5056a80a305334bd6c49dfbe32a">cbAlloc</a>,</div>
<div class="line"><a name="l02957"></a><span class="lineno"> 2957</span>&#160;                                        &amp;<a class="code" href="a00719.html#a0d8ef5056a80a305334bd6c49dfbe32a">cbAlloc</a>,</div>
<div class="line"><a name="l02958"></a><span class="lineno"> 2958</span>&#160;                                        (PCH)pstr-&gt;<a class="code" href="a02449.html#a372d153f4b52e56d80dfa3eba11db02b">Buffer</a>,</div>
<div class="line"><a name="l02959"></a><span class="lineno"> 2959</span>&#160;                                        pstr-&gt;<a class="code" href="a02449.html#abfb371817eb1c8f0d8a165bb2b798092">Length</a> + 1</div>
<div class="line"><a name="l02960"></a><span class="lineno"> 2960</span>&#160;                                        );</div>
<div class="line"><a name="l02961"></a><span class="lineno"> 2961</span>&#160;                        str.<a class="code" href="a02457.html#abfb371817eb1c8f0d8a165bb2b798092">Length</a> = <a class="code" href="a00719.html#a0d8ef5056a80a305334bd6c49dfbe32a">cbAlloc</a> - <span class="keyword">sizeof</span>(WCHAR);</div>
<div class="line"><a name="l02962"></a><span class="lineno"> 2962</span>&#160;                    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02963"></a><span class="lineno"> 2963</span>&#160;                        str.<a class="code" href="a02457.html#abfb371817eb1c8f0d8a165bb2b798092">Length</a> = pstr-&gt;<a class="code" href="a02449.html#abfb371817eb1c8f0d8a165bb2b798092">Length</a>;</div>
<div class="line"><a name="l02964"></a><span class="lineno"> 2964</span>&#160;                        RtlCopyMemory(str.<a class="code" href="a02457.html#a99314e2f6ea6b552b9538bbe7b7e64ba">Buffer</a>, pstr-&gt;<a class="code" href="a02449.html#a372d153f4b52e56d80dfa3eba11db02b">Buffer</a>, <a class="code" href="a00719.html#a0d8ef5056a80a305334bd6c49dfbe32a">cbAlloc</a>);</div>
<div class="line"><a name="l02965"></a><span class="lineno"> 2965</span>&#160;                        Status = STATUS_SUCCESS;</div>
<div class="line"><a name="l02966"></a><span class="lineno"> 2966</span>&#160;                    }</div>
<div class="line"><a name="l02967"></a><span class="lineno"> 2967</span>&#160;                } except (EXCEPTION_EXECUTE_HANDLER) {</div>
<div class="line"><a name="l02968"></a><span class="lineno"> 2968</span>&#160;                    Status = GetExceptionCode();</div>
<div class="line"><a name="l02969"></a><span class="lineno"> 2969</span>&#160;                }</div>
<div class="line"><a name="l02970"></a><span class="lineno"> 2970</span>&#160;                <span class="keywordflow">if</span> (!NT_SUCCESS(Status)) {</div>
<div class="line"><a name="l02971"></a><span class="lineno"> 2971</span>&#160;                    UserFreePool(str.<a class="code" href="a02457.html#a99314e2f6ea6b552b9538bbe7b7e64ba">Buffer</a>);</div>
<div class="line"><a name="l02972"></a><span class="lineno"> 2972</span>&#160;                    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l02973"></a><span class="lineno"> 2973</span>&#160;                }</div>
<div class="line"><a name="l02974"></a><span class="lineno"> 2974</span>&#160;                pstr-&gt;<a class="code" href="a02449.html#a372d153f4b52e56d80dfa3eba11db02b">Buffer</a> = str.<a class="code" href="a02457.html#a99314e2f6ea6b552b9538bbe7b7e64ba">Buffer</a>;</div>
<div class="line"><a name="l02975"></a><span class="lineno"> 2975</span>&#160;            }</div>
<div class="line"><a name="l02976"></a><span class="lineno"> 2976</span>&#160;            <span class="keywordflow">if</span> (lParam) {</div>
<div class="line"><a name="l02977"></a><span class="lineno"> 2977</span>&#160;                pti = <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>();</div>
<div class="line"><a name="l02978"></a><span class="lineno"> 2978</span>&#160;                ThreadLockPool(pti, str.<a class="code" href="a02457.html#a99314e2f6ea6b552b9538bbe7b7e64ba">Buffer</a>, &amp;tlPool);</div>
<div class="line"><a name="l02979"></a><span class="lineno"> 2979</span>&#160;            }</div>
<div class="line"><a name="l02980"></a><span class="lineno"> 2980</span>&#160;            <a class="code" href="a00842.html#ac6cbd728d486a3a91e1b5d3181ab07aa">xxxSystemBroadcastMessage</a>(message, wParam,</div>
<div class="line"><a name="l02981"></a><span class="lineno"> 2981</span>&#160;                    lParam ? (LPARAM)&amp;str : 0, wCmd, pbcm);</div>
<div class="line"><a name="l02982"></a><span class="lineno"> 2982</span>&#160;            <span class="keywordflow">if</span> (lParam)</div>
<div class="line"><a name="l02983"></a><span class="lineno"> 2983</span>&#160;                ThreadUnlockAndFreePool(pti, &amp;tlPool);</div>
<div class="line"><a name="l02984"></a><span class="lineno"> 2984</span>&#160;            <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l02985"></a><span class="lineno"> 2985</span>&#160;        }</div>
<div class="line"><a name="l02986"></a><span class="lineno"> 2986</span>&#160; </div>
<div class="line"><a name="l02987"></a><span class="lineno"> 2987</span>&#160;        <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(<a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>()-&gt;rpdesk);</div>
<div class="line"><a name="l02988"></a><span class="lineno"> 2988</span>&#160; </div>
<div class="line"><a name="l02989"></a><span class="lineno"> 2989</span>&#160;        pwnd = <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>()-&gt;<a class="code" href="a02889.html#abb1184e0c5805b5ad89b79dcc2bd17c8">rpdesk</a>-&gt;<a class="code" href="a02801.html#a76d4881aa4c15330103e83a80e6b5dc7">pDeskInfo</a>-&gt;<a class="code" href="a02609.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>;</div>
<div class="line"><a name="l02990"></a><span class="lineno"> 2990</span>&#160; </div>
<div class="line"><a name="l02991"></a><span class="lineno"> 2991</span>&#160;        <span class="keywordflow">if</span> (pwnd == NULL) {</div>
<div class="line"><a name="l02992"></a><span class="lineno"> 2992</span>&#160;            <a class="code" href="a00371.html#ae61d954062a9ece52e350e54cad9a23d">RIPERR0</a>(ERROR_ACCESS_DENIED, <a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;sender must have an associated desktop&quot;</span>);</div>
<div class="line"><a name="l02993"></a><span class="lineno"> 2993</span>&#160;            <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l02994"></a><span class="lineno"> 2994</span>&#160;        }</div>
<div class="line"><a name="l02995"></a><span class="lineno"> 2995</span>&#160;    }</div>
<div class="line"><a name="l02996"></a><span class="lineno"> 2996</span>&#160; </div>
<div class="line"><a name="l02997"></a><span class="lineno"> 2997</span>&#160;    pbwl = <a class="code" href="a00017.html#a38f9f1cda93f580ed3ac238d15bd06f7">BuildHwndList</a>(pwnd-&gt;<a class="code" href="a02581.html#a6171c9000ea2060597a9bcf498ee0316">spwndChild</a>, BWL_ENUMLIST, NULL);</div>
<div class="line"><a name="l02998"></a><span class="lineno"> 2998</span>&#160;    <span class="keywordflow">if</span> (pbwl == NULL)</div>
<div class="line"><a name="l02999"></a><span class="lineno"> 2999</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l03000"></a><span class="lineno"> 3000</span>&#160; </div>
<div class="line"><a name="l03001"></a><span class="lineno"> 3001</span>&#160;    ppiCurrent = PpiCurrent();</div>
<div class="line"><a name="l03002"></a><span class="lineno"> 3002</span>&#160; </div>
<div class="line"><a name="l03003"></a><span class="lineno"> 3003</span>&#160;    <span class="keywordflow">for</span> (phwnd = pbwl-&gt;<a class="code" href="a02913.html#abebc9955f9d1fbc422612b6eab345d2e">rghwnd</a>; *phwnd != (HWND)1; phwnd++) {</div>
<div class="line"><a name="l03004"></a><span class="lineno"> 3004</span>&#160; </div>
<div class="line"><a name="l03005"></a><span class="lineno"> 3005</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l03006"></a><span class="lineno"> 3006</span>&#160;<span class="comment">         * Make sure this hwnd is still around.</span></div>
<div class="line"><a name="l03007"></a><span class="lineno"> 3007</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l03008"></a><span class="lineno"> 3008</span>&#160;        <span class="keywordflow">if</span> ((pwnd = RevalidateHwnd(*phwnd)) == NULL)</div>
<div class="line"><a name="l03009"></a><span class="lineno"> 3009</span>&#160;            <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l03010"></a><span class="lineno"> 3010</span>&#160; </div>
<div class="line"><a name="l03011"></a><span class="lineno"> 3011</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l03012"></a><span class="lineno"> 3012</span>&#160;<span class="comment">         * Make sure this window can handle broadcast messages</span></div>
<div class="line"><a name="l03013"></a><span class="lineno"> 3013</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l03014"></a><span class="lineno"> 3014</span>&#160;        <span class="keywordflow">if</span> (!<a class="code" href="a00842.html#a99ccc0ce31a8cf1beac5585a408d64ff">fBroadcastProc</a>(pwnd))</div>
<div class="line"><a name="l03015"></a><span class="lineno"> 3015</span>&#160;            <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l03016"></a><span class="lineno"> 3016</span>&#160; </div>
<div class="line"><a name="l03017"></a><span class="lineno"> 3017</span>&#160;        ThreadLockAlways(pwnd, &amp;tlpwnd);</div>
<div class="line"><a name="l03018"></a><span class="lineno"> 3018</span>&#160; </div>
<div class="line"><a name="l03019"></a><span class="lineno"> 3019</span>&#160;        <span class="keywordflow">switch</span> (wCmd) {</div>
<div class="line"><a name="l03020"></a><span class="lineno"> 3020</span>&#160;        <span class="keywordflow">case</span> BMSG_SENDMSG:</div>
<div class="line"><a name="l03021"></a><span class="lineno"> 3021</span>&#160;            <a class="code" href="a00842.html#a69cf2e14dcefd941469ad5126e40f79a">xxxSendMessage</a>(pwnd, message, wParam, lParam);</div>
<div class="line"><a name="l03022"></a><span class="lineno"> 3022</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l03023"></a><span class="lineno"> 3023</span>&#160; </div>
<div class="line"><a name="l03024"></a><span class="lineno"> 3024</span>&#160;        <span class="keywordflow">case</span> BMSG_SENDNOTIFYMSG:</div>
<div class="line"><a name="l03025"></a><span class="lineno"> 3025</span>&#160;            {</div>
<div class="line"><a name="l03026"></a><span class="lineno"> 3026</span>&#160;                ATOM Atom = 0;</div>
<div class="line"><a name="l03027"></a><span class="lineno"> 3027</span>&#160; </div>
<div class="line"><a name="l03028"></a><span class="lineno"> 3028</span>&#160;                <span class="keywordflow">switch</span> (message) {</div>
<div class="line"><a name="l03029"></a><span class="lineno"> 3029</span>&#160;                <span class="keywordflow">case</span> WM_WININICHANGE:</div>
<div class="line"><a name="l03030"></a><span class="lineno"> 3030</span>&#160;                <span class="keywordflow">case</span> WM_DEVMODECHANGE:</div>
<div class="line"><a name="l03031"></a><span class="lineno"> 3031</span>&#160;                    <span class="keywordflow">if</span> (lParam) {</div>
<div class="line"><a name="l03032"></a><span class="lineno"> 3032</span>&#160;                        <a class="code" href="a02449.html">PLARGE_STRING</a> pstr = (<a class="code" href="a00365.html#aa453bfba298bc156c84c4a04a89b4436">PLARGE_STRING</a>)lParam;</div>
<div class="line"><a name="l03033"></a><span class="lineno"> 3033</span>&#160; </div>
<div class="line"><a name="l03034"></a><span class="lineno"> 3034</span>&#160;                        <span class="comment">/*</span></div>
<div class="line"><a name="l03035"></a><span class="lineno"> 3035</span>&#160;<span class="comment">                         * Convert strings to atoms for the post.</span></div>
<div class="line"><a name="l03036"></a><span class="lineno"> 3036</span>&#160;<span class="comment">                         */</span></div>
<div class="line"><a name="l03037"></a><span class="lineno"> 3037</span>&#160;                        <span class="keywordflow">if</span> (pstr)</div>
<div class="line"><a name="l03038"></a><span class="lineno"> 3038</span>&#160;                            Atom = AddAtomW(pstr-&gt;<a class="code" href="a02449.html#a372d153f4b52e56d80dfa3eba11db02b">Buffer</a>);</div>
<div class="line"><a name="l03039"></a><span class="lineno"> 3039</span>&#160;                        <span class="keywordflow">if</span> (!Atom) {</div>
<div class="line"><a name="l03040"></a><span class="lineno"> 3040</span>&#160;                            lRet = FALSE;</div>
<div class="line"><a name="l03041"></a><span class="lineno"> 3041</span>&#160;                            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l03042"></a><span class="lineno"> 3042</span>&#160;                        }</div>
<div class="line"><a name="l03043"></a><span class="lineno"> 3043</span>&#160;                    }</div>
<div class="line"><a name="l03044"></a><span class="lineno"> 3044</span>&#160; </div>
<div class="line"><a name="l03045"></a><span class="lineno"> 3045</span>&#160;                    <span class="comment">/*</span></div>
<div class="line"><a name="l03046"></a><span class="lineno"> 3046</span>&#160;<span class="comment">                     * These messages need to be able to cross</span></div>
<div class="line"><a name="l03047"></a><span class="lineno"> 3047</span>&#160;<span class="comment">                     * desktops so PostEvent &#39;em.</span></div>
<div class="line"><a name="l03048"></a><span class="lineno"> 3048</span>&#160;<span class="comment">                     */</span></div>
<div class="line"><a name="l03049"></a><span class="lineno"> 3049</span>&#160;                    pmsg = UserAllocPool(<span class="keyword">sizeof</span>(<a class="code" href="a02953.html">ASYNCSENDMSG</a>),</div>
<div class="line"><a name="l03050"></a><span class="lineno"> 3050</span>&#160;                        TAG_SMS);</div>
<div class="line"><a name="l03051"></a><span class="lineno"> 3051</span>&#160;                    <span class="keywordflow">if</span> (pmsg == NULL) {</div>
<div class="line"><a name="l03052"></a><span class="lineno"> 3052</span>&#160;                        <span class="keywordflow">goto</span> CleanupAtom;</div>
<div class="line"><a name="l03053"></a><span class="lineno"> 3053</span>&#160;                    }</div>
<div class="line"><a name="l03054"></a><span class="lineno"> 3054</span>&#160; </div>
<div class="line"><a name="l03055"></a><span class="lineno"> 3055</span>&#160;                    pmsg-&gt;<a class="code" href="a02953.html#aa72255e7356d612ad72bb45def01fcbb">hwnd</a> = *phwnd;</div>
<div class="line"><a name="l03056"></a><span class="lineno"> 3056</span>&#160;                    pmsg-&gt;<a class="code" href="a02953.html#a2878d2b3ecc6a3d2477bc260ee848675">message</a> = message;</div>
<div class="line"><a name="l03057"></a><span class="lineno"> 3057</span>&#160;                    pmsg-&gt;<a class="code" href="a02953.html#a7630a07d46e4a34e408cfb326d9d0648">wParam</a> = wParam;</div>
<div class="line"><a name="l03058"></a><span class="lineno"> 3058</span>&#160;                    pmsg-&gt;<a class="code" href="a02953.html#a5e6806726c901bac1a235d0caf8deb96">lParam</a> = Atom;</div>
<div class="line"><a name="l03059"></a><span class="lineno"> 3059</span>&#160; </div>
<div class="line"><a name="l03060"></a><span class="lineno"> 3060</span>&#160;                    <span class="keywordflow">if</span> (!<a class="code" href="a03290.html#aa573471dabf238131312c12fb896b945">PostEventMessage</a>(GETPTI(pwnd), GETPTI(pwnd)-&gt;pq,</div>
<div class="line"><a name="l03061"></a><span class="lineno"> 3061</span>&#160;                                         QEVENT_ASYNCSENDMSG,NULL, 0,</div>
<div class="line"><a name="l03062"></a><span class="lineno"> 3062</span>&#160;                                         (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)pmsg, 0)) {</div>
<div class="line"><a name="l03063"></a><span class="lineno"> 3063</span>&#160; </div>
<div class="line"><a name="l03064"></a><span class="lineno"> 3064</span>&#160;                        UserFreePool(pmsg);</div>
<div class="line"><a name="l03065"></a><span class="lineno"> 3065</span>&#160;CleanupAtom:</div>
<div class="line"><a name="l03066"></a><span class="lineno"> 3066</span>&#160;                        <span class="keywordflow">if</span> (Atom) {</div>
<div class="line"><a name="l03067"></a><span class="lineno"> 3067</span>&#160;                            DeleteAtom(Atom);</div>
<div class="line"><a name="l03068"></a><span class="lineno"> 3068</span>&#160;                        }</div>
<div class="line"><a name="l03069"></a><span class="lineno"> 3069</span>&#160;                        lRet = FALSE;</div>
<div class="line"><a name="l03070"></a><span class="lineno"> 3070</span>&#160;                    }</div>
<div class="line"><a name="l03071"></a><span class="lineno"> 3071</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l03072"></a><span class="lineno"> 3072</span>&#160; </div>
<div class="line"><a name="l03073"></a><span class="lineno"> 3073</span>&#160;                <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l03074"></a><span class="lineno"> 3074</span>&#160;                    <span class="comment">/*</span></div>
<div class="line"><a name="l03075"></a><span class="lineno"> 3075</span>&#160;<span class="comment">                     * A regular kind of guy.  No desktop crossing.</span></div>
<div class="line"><a name="l03076"></a><span class="lineno"> 3076</span>&#160;<span class="comment">                     */</span></div>
<div class="line"><a name="l03077"></a><span class="lineno"> 3077</span>&#160;                    <a class="code" href="a00842.html#a0035e456f12ef530c2b674cd1f6f8b36">xxxSendNotifyMessage</a>(pwnd, message, wParam, lParam);</div>
<div class="line"><a name="l03078"></a><span class="lineno"> 3078</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l03079"></a><span class="lineno"> 3079</span>&#160;                }</div>
<div class="line"><a name="l03080"></a><span class="lineno"> 3080</span>&#160;            }</div>
<div class="line"><a name="l03081"></a><span class="lineno"> 3081</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l03082"></a><span class="lineno"> 3082</span>&#160; </div>
<div class="line"><a name="l03083"></a><span class="lineno"> 3083</span>&#160;        <span class="keywordflow">case</span> BMSG_SENDNOTIFYMSGPROCESS:</div>
<div class="line"><a name="l03084"></a><span class="lineno"> 3084</span>&#160;            <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(message != WM_WININICHANGE &amp;&amp; message != WM_DEVMODECHANGE);</div>
<div class="line"><a name="l03085"></a><span class="lineno"> 3085</span>&#160; </div>
<div class="line"><a name="l03086"></a><span class="lineno"> 3086</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l03087"></a><span class="lineno"> 3087</span>&#160;<span class="comment">             * Intra-process messages are synchronous; 22238.</span></div>
<div class="line"><a name="l03088"></a><span class="lineno"> 3088</span>&#160;<span class="comment">             * WM_PALETTECHANGED was being sent after the WM_DESTROY</span></div>
<div class="line"><a name="l03089"></a><span class="lineno"> 3089</span>&#160;<span class="comment">             * but console thread must not be synchronous.</span></div>
<div class="line"><a name="l03090"></a><span class="lineno"> 3090</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l03091"></a><span class="lineno"> 3091</span>&#160;            <span class="keywordflow">if</span> ((GETPTI(pwnd)-&gt;ppi == ppiCurrent) &amp;&amp; !(GETPTI(pwnd)-&gt;TIF_flags &amp; TIF_CSRSSTHREAD)) {</div>
<div class="line"><a name="l03092"></a><span class="lineno"> 3092</span>&#160;                <a class="code" href="a00842.html#a69cf2e14dcefd941469ad5126e40f79a">xxxSendMessage</a>(pwnd, message, wParam, lParam);</div>
<div class="line"><a name="l03093"></a><span class="lineno"> 3093</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l03094"></a><span class="lineno"> 3094</span>&#160;                <a class="code" href="a00842.html#a0035e456f12ef530c2b674cd1f6f8b36">xxxSendNotifyMessage</a>(pwnd, message, wParam, lParam);</div>
<div class="line"><a name="l03095"></a><span class="lineno"> 3095</span>&#160;            }</div>
<div class="line"><a name="l03096"></a><span class="lineno"> 3096</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l03097"></a><span class="lineno"> 3097</span>&#160; </div>
<div class="line"><a name="l03098"></a><span class="lineno"> 3098</span>&#160;        <span class="keywordflow">case</span> BMSG_POSTMSG:</div>
<div class="line"><a name="l03099"></a><span class="lineno"> 3099</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l03100"></a><span class="lineno"> 3100</span>&#160;<span class="comment">             * Don&#39;t broadcast-post to owned windows (Win3.1 compatiblilty)</span></div>
<div class="line"><a name="l03101"></a><span class="lineno"> 3101</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l03102"></a><span class="lineno"> 3102</span>&#160;            <span class="keywordflow">if</span> (pwnd-&gt;<a class="code" href="a02581.html#a9e4b9545017c505ebd9b8808bd470ab9">spwndOwner</a> == NULL)</div>
<div class="line"><a name="l03103"></a><span class="lineno"> 3103</span>&#160;                <a class="code" href="a00257.html#a933a4a4818762a03428fe021dd9772a4">_PostMessage</a>(pwnd, message, wParam, lParam);</div>
<div class="line"><a name="l03104"></a><span class="lineno"> 3104</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l03105"></a><span class="lineno"> 3105</span>&#160; </div>
<div class="line"><a name="l03106"></a><span class="lineno"> 3106</span>&#160;        <span class="keywordflow">case</span> BMSG_SENDMSGCALLBACK:</div>
<div class="line"><a name="l03107"></a><span class="lineno"> 3107</span>&#160;            <a class="code" href="a00842.html#acfe6f35d8e62e08d08e52a221f643c9d">xxxSendMessageCallback</a>(pwnd, message, wParam, lParam,</div>
<div class="line"><a name="l03108"></a><span class="lineno"> 3108</span>&#160;                    pbcm-&gt;<a class="code" href="a02961.html#ad5de33f64346536444ff1b332231462e">cb</a>.<a class="code" href="a02961.html#a7ee9bbcad17fb211571e22478070487e">lpResultCallBack</a>, pbcm-&gt;<a class="code" href="a02961.html#ad5de33f64346536444ff1b332231462e">cb</a>.<a class="code" href="a02961.html#ad38b92af7d164a277eb2d30b5e65a489">dwData</a>, pbcm-&gt;<a class="code" href="a02961.html#ad5de33f64346536444ff1b332231462e">cb</a>.<a class="code" href="a02961.html#a85a9b71d92ab350834cac1753f14a972">bClientRequest</a>);</div>
<div class="line"><a name="l03109"></a><span class="lineno"> 3109</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l03110"></a><span class="lineno"> 3110</span>&#160; </div>
<div class="line"><a name="l03111"></a><span class="lineno"> 3111</span>&#160;        <span class="keywordflow">case</span> BMSG_SENDMSGTIMEOUT:</div>
<div class="line"><a name="l03112"></a><span class="lineno"> 3112</span>&#160;            <a class="code" href="a00842.html#a4bbe3674acd8620c7d8cf43d282241c0">xxxSendMessageTimeout</a>(pwnd, message, wParam, lParam,</div>
<div class="line"><a name="l03113"></a><span class="lineno"> 3113</span>&#160;                    pbcm-&gt;<a class="code" href="a02961.html#a668dc7e9008960bc451044e1ea615c38">to</a>.<a class="code" href="a02961.html#a9e27c6666cd80d42c078d160ef2c15e6">fuFlags</a>, pbcm-&gt;<a class="code" href="a02961.html#a668dc7e9008960bc451044e1ea615c38">to</a>.<a class="code" href="a02961.html#ae107724d62987d10ec9c8956bd404195">uTimeout</a>, pbcm-&gt;<a class="code" href="a02961.html#a668dc7e9008960bc451044e1ea615c38">to</a>.<a class="code" href="a02961.html#a90d568c13a21cdb08e2b4d604ea44c2d">lpdwResult</a>);</div>
<div class="line"><a name="l03114"></a><span class="lineno"> 3114</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l03115"></a><span class="lineno"> 3115</span>&#160;        }</div>
<div class="line"><a name="l03116"></a><span class="lineno"> 3116</span>&#160; </div>
<div class="line"><a name="l03117"></a><span class="lineno"> 3117</span>&#160;        ThreadUnlock(&amp;tlpwnd);</div>
<div class="line"><a name="l03118"></a><span class="lineno"> 3118</span>&#160;    }</div>
<div class="line"><a name="l03119"></a><span class="lineno"> 3119</span>&#160; </div>
<div class="line"><a name="l03120"></a><span class="lineno"> 3120</span>&#160;    <a class="code" href="a00674.html#ac42b3a26d86746846b51a69d11fc0797">FreeHwndList</a>(pbwl);</div>
<div class="line"><a name="l03121"></a><span class="lineno"> 3121</span>&#160; </div>
<div class="line"><a name="l03122"></a><span class="lineno"> 3122</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l03123"></a><span class="lineno"> 3123</span>&#160;<span class="comment">     * Excel-Solver 3.0 expects a non-zero return value from a</span></div>
<div class="line"><a name="l03124"></a><span class="lineno"> 3124</span>&#160;<span class="comment">     * SendMessage(-1,WM_DDE_INITIATE,....); Because, we had</span></div>
<div class="line"><a name="l03125"></a><span class="lineno"> 3125</span>&#160;<span class="comment">     * FFFE_FARFRAME in 3.0, the DX register at this point always had</span></div>
<div class="line"><a name="l03126"></a><span class="lineno"> 3126</span>&#160;<span class="comment">     * a value of 0x102; But, because we removed it under Win3.1, we get</span></div>
<div class="line"><a name="l03127"></a><span class="lineno"> 3127</span>&#160;<span class="comment">     * a zero value in ax and dx; This makes solver think that the DDE has</span></div>
<div class="line"><a name="l03128"></a><span class="lineno"> 3128</span>&#160;<span class="comment">     * failed.  So, to support the existing SOLVER, we make dx nonzero.</span></div>
<div class="line"><a name="l03129"></a><span class="lineno"> 3129</span>&#160;<span class="comment">     * Fix for Bug #6005 -- SANKAR -- 05-16-91 --</span></div>
<div class="line"><a name="l03130"></a><span class="lineno"> 3130</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l03131"></a><span class="lineno"> 3131</span>&#160;    <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l03132"></a><span class="lineno"> 3132</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00257.html#a933a4a4818762a03428fe021dd9772a4">_PostMessage()</a>, <a class="el" href="a00365_source.html#l00269">_LARGE_STRING::bAnsi</a>, <a class="el" href="a00365_source.html#l00283">_LARGE_UNICODE_STRING::bAnsi</a>, <a class="el" href="a00899_source.html#l02696">tagBROADCASTMSG::bClientRequest</a>, <a class="el" href="a00365_source.html#l00270">_LARGE_STRING::Buffer</a>, <a class="el" href="a00365_source.html#l00284">_LARGE_UNICODE_STRING::Buffer</a>, <a class="el" href="a00017_source.html#l00112">BuildHwndList()</a>, <a class="el" href="a02961.html#ad5de33f64346536444ff1b332231462e">tagBROADCASTMSG::cb</a>, <a class="el" href="a00719.html#a0d8ef5056a80a305334bd6c49dfbe32a">cbAlloc</a>, <a class="el" href="a00899_source.html#l02695">tagBROADCASTMSG::dwData</a>, <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00842_source.html#l00105">fBroadcastProc</a>, <a class="el" href="a00674_source.html#l00340">FreeHwndList()</a>, <a class="el" href="a00899_source.html#l02699">tagBROADCASTMSG::fuFlags</a>, <a class="el" href="a00899_source.html#l02664">tagASYNCSENDMSG::hwnd</a>, <a class="el" href="a00365_source.html#l00267">_LARGE_STRING::Length</a>, <a class="el" href="a00365_source.html#l00281">_LARGE_UNICODE_STRING::Length</a>, <a class="el" href="a00899_source.html#l02662">tagASYNCSENDMSG::lParam</a>, <a class="el" href="a00899_source.html#l02701">tagBROADCASTMSG::lpdwResult</a>, <a class="el" href="a00899_source.html#l02694">tagBROADCASTMSG::lpResultCallBack</a>, <a class="el" href="a00365_source.html#l00282">_LARGE_UNICODE_STRING::MaximumLength</a>, <a class="el" href="a00899_source.html#l02663">tagASYNCSENDMSG::message</a>, <a class="el" href="a00899_source.html#l01706">tagDESKTOP::pDeskInfo</a>, <a class="el" href="a03290_source.html#l01893">PostEventMessage()</a>, <a class="el" href="a00263_source.html#l00526">PtiCurrent()</a>, <a class="el" href="a00899_source.html#l02498">tagBWL::rghwnd</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00119">RIPERR0</a>, <a class="el" href="a00899_source.html#l02288">tagTHREADINFO::rpdesk</a>, <a class="el" href="a00365_source.html#l01603">tagDESKTOPINFO::spwnd</a>, <a class="el" href="a00365_source.html#l01393">tagWND::spwndChild</a>, <a class="el" href="a00365_source.html#l01394">tagWND::spwndOwner</a>, <a class="el" href="a02961.html#a668dc7e9008960bc451044e1ea615c38">tagBROADCASTMSG::to</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>, <a class="el" href="a00950_source.html#l00117">UserAssert</a>, <a class="el" href="a00899_source.html#l02700">tagBROADCASTMSG::uTimeout</a>, <a class="el" href="a00899_source.html#l02661">tagASYNCSENDMSG::wParam</a>, <a class="el" href="a00842_source.html#l00613">xxxSendMessage()</a>, <a class="el" href="a00842_source.html#l01013">xxxSendMessageCallback()</a>, <a class="el" href="a00842_source.html#l00644">xxxSendMessageTimeout()</a>, <a class="el" href="a00842_source.html#l00968">xxxSendNotifyMessage()</a> , 以及 <a class="el" href="a00842_source.html#l00919">xxxSystemBroadcastMessage()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03290_source.html#l00918">_PostMessage()</a>, <a class="el" href="a00689_source.html#l00884">ResetDisplayDevice()</a>, <a class="el" href="a00635_source.html#l01273">xxxDestroyWindow()</a>, <a class="el" href="a00842_source.html#l01013">xxxSendMessageCallback()</a>, <a class="el" href="a00842_source.html#l00644">xxxSendMessageTimeout()</a> , 以及 <a class="el" href="a00842_source.html#l00919">xxxSystemBroadcastMessage()</a>.</p>

</div>
</div>
<a id="a9e53f556a04607e23d1b746d5274b952"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e53f556a04607e23d1b746d5274b952">&#9670;&nbsp;</a></span>xxxInterSendMsgEx()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LONG xxxInterSendMsgEx </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>wParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>lParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00365.html#a177dce23f2b497ba8dc22f5a92d3f3d3">PTHREADINFO</a>&#160;</td>
          <td class="paramname"><em>ptiSender</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00365.html#a177dce23f2b497ba8dc22f5a92d3f3d3">PTHREADINFO</a>&#160;</td>
          <td class="paramname"><em>ptiReceiver</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00899.html#afe5eb9a66a2922195e11fcf911f997d7">PINTRSENDMSGEX</a>&#160;</td>
          <td class="paramname"><em>pism</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l01235">1235</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>&#160;{</div>
<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>&#160;    <a class="code" href="a02945.html">PSMS</a> psms, *ppsms;</div>
<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>&#160;    <a class="code" href="a02945.html">PSMS</a> psmsSentSave;</div>
<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>&#160;    LONG lRet = 0;</div>
<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> cbCapture, cbOutput;</div>
<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>&#160;    PBYTE lpCapture;</div>
<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>&#160;    PCOPYDATASTRUCT pcds;</div>
<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>&#160;    <a class="code" href="a02933.html">PMDICREATESTRUCTEX</a> pmdics;</div>
<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>&#160;    LPHLP phlp;</div>
<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>&#160;    LPHELPINFO phelpinfo;</div>
<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>&#160;    <a class="code" href="a02449.html">LARGE_STRING</a> str;</div>
<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> lParamSave;</div>
<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> fString = <a class="code" href="a00842.html#add838c111b491936750292a866544ada">NoString</a>;</div>
<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>&#160; </div>
<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>&#160;    CheckCritIn();</div>
<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>&#160; </div>
<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>&#160; </div>
<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>&#160;<span class="comment">     * If the sender is dying, fail the call</span></div>
<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>&#160;    <span class="keywordflow">if</span> ((ptiSender != NULL) &amp;&amp; (ptiSender-&gt;<a class="code" href="a02889.html#ae8b869ec5b101646649020f5b0fd5d0d">TIF_flags</a> &amp; TIF_INCLEANUP))</div>
<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>&#160; </div>
<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>&#160;<span class="comment">     * Alloc SMS structure.</span></div>
<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>&#160;    psms = <a class="code" href="a00842.html#ad97dfdc535ff9d65db86f8206e7a38f8">AllocSMS</a>();</div>
<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>&#160;    <span class="keywordflow">if</span> (psms == NULL) {</div>
<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>&#160; </div>
<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>&#160;<span class="comment">         * Set to zero so xxxSendNotifyMessage would return FALSE.</span></div>
<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>&#160;    }</div>
<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>&#160; </div>
<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>&#160;<span class="comment">     * Prepare to capture variable length data from client</span></div>
<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>&#160;<span class="comment">     * space.  Addresses have already been probed.  Fixed-length</span></div>
<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>&#160;<span class="comment">     * data is probed and captured in the message thunk.</span></div>
<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>&#160;    psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a> = NULL;</div>
<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>&#160;    cbCapture = cbOutput = 0;</div>
<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>&#160;    lpCapture = (LPBYTE)lParam;</div>
<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>&#160; </div>
<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>&#160;<span class="comment">     * For messages with indirect data, set cbCapture and lpCapture</span></div>
<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>&#160;<span class="comment">     * (if not lParam) as approp.</span></div>
<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>&#160;    <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>&#160;        <span class="keywordflow">switch</span> (message) {</div>
<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>&#160;        <span class="keywordflow">case</span> WM_COPYGLOBALDATA:     <span class="comment">// fnCOPYGLOBALDATA</span></div>
<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>&#160;            cbCapture = wParam;</div>
<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>&#160; </div>
<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>&#160;        <span class="keywordflow">case</span> WM_COPYDATA:           <span class="comment">// fnCOPYDATA</span></div>
<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>&#160;            pcds = (PCOPYDATASTRUCT)lParam;</div>
<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>&#160;            <span class="keywordflow">if</span> (pcds-&gt;lpData) {</div>
<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>&#160;                cbCapture = <span class="keyword">sizeof</span>(COPYDATASTRUCT) + pcds-&gt;cbData;</div>
<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>&#160;                cbCapture = <span class="keyword">sizeof</span>(COPYDATASTRUCT);</div>
<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>&#160;            }</div>
<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>&#160; </div>
<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>&#160;        <span class="keywordflow">case</span> WM_CREATE:             <span class="comment">// fnINLPCREATESTRUCT</span></div>
<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>&#160;        <span class="keywordflow">case</span> WM_NCCREATE:           <span class="comment">// fnINLPCREATESTRUCT</span></div>
<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>&#160;            <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(FALSE);</div>
<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>&#160;            <a class="code" href="a00842.html#a5e2cf05ab05318fd5654f254de252686">FreeSMS</a>(psms);</div>
<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>&#160;            <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>&#160; </div>
<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>&#160;        <span class="keywordflow">case</span> WM_HELP:               <span class="comment">// fnINLPHELPINFOSTRUCT</span></div>
<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>&#160;            phelpinfo = (LPHELPINFO)lParam;</div>
<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>&#160;            cbCapture = phelpinfo-&gt;cbSize;</div>
<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>&#160; </div>
<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>&#160;        <span class="keywordflow">case</span> WM_WINHELP:            <span class="comment">// fnINLPHLPSTRUCT</span></div>
<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>&#160;            phlp = (LPHLP)lParam;</div>
<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>&#160;            cbCapture = phlp-&gt;cbData;</div>
<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>&#160; </div>
<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>&#160;        <span class="keywordflow">case</span> WM_MDICREATE:          <span class="comment">// fnINLPMDICREATESTRUCT</span></div>
<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>&#160;            pmdics = (<a class="code" href="a00899.html#ae8b51d27d387b2045504ff36e096e240">PMDICREATESTRUCTEX</a>)lParam;</div>
<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>&#160;            cbCapture = pmdics-&gt;<a class="code" href="a02933.html#a96f916133057e9d37f61758241576801">strTitle</a>.Length +</div>
<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>&#160;                    pmdics-&gt;<a class="code" href="a02933.html#aa7fc615cb4d93cdbb35050784d8d4859">strClass</a>.Length + 2 * <span class="keyword">sizeof</span>(WCHAR);</div>
<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>&#160;            <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(pmdics-&gt;<a class="code" href="a02933.html#aa7fc615cb4d93cdbb35050784d8d4859">strClass</a>.Buffer == pmdics-&gt;<a class="code" href="a02933.html#a3e6fe5ad49f6102c935124878b224602">mdics</a>.szClass);</div>
<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>&#160;            <span class="keywordflow">if</span> (pmdics-&gt;<a class="code" href="a02933.html#a96f916133057e9d37f61758241576801">strTitle</a>.Buffer)</div>
<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>&#160;                <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(pmdics-&gt;<a class="code" href="a02933.html#a96f916133057e9d37f61758241576801">strTitle</a>.Buffer == pmdics-&gt;<a class="code" href="a02933.html#a3e6fe5ad49f6102c935124878b224602">mdics</a>.szTitle);</div>
<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>&#160; </div>
<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>&#160;        <span class="keywordflow">case</span> LB_ADDSTRING:           <span class="comment">// INLBOXSTRING calls fnINSTRING</span></div>
<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>&#160;        <span class="keywordflow">case</span> LB_INSERTSTRING:        <span class="comment">// INLBOXSTRING calls fnINSTRING</span></div>
<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>&#160;        <span class="keywordflow">case</span> LB_SELECTSTRING:        <span class="comment">// INLBOXSTRING calls fnINSTRING</span></div>
<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>&#160;        <span class="keywordflow">case</span> LB_FINDSTRING:          <span class="comment">// INLBOXSTRING calls fnINSTRING</span></div>
<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>&#160;        <span class="keywordflow">case</span> LB_FINDSTRINGEXACT:     <span class="comment">// INLBOXSTRING calls fnINSTRING</span></div>
<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>&#160;<span class="comment">             * See if the control is ownerdraw and does not have the LBS_HASSTRINGS</span></div>
<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>&#160;<span class="comment">             * style. If so, treat lParam as a DWORD.</span></div>
<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>&#160;            <span class="keywordflow">if</span> (pwnd &amp;&amp; !(pwnd-&gt;style &amp; LBS_HASSTRINGS) &amp;&amp;</div>
<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>&#160;                    (pwnd-&gt;style &amp; (LBS_OWNERDRAWFIXED | LBS_OWNERDRAWVARIABLE))) {</div>
<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>&#160;<span class="comment">                 * Treat lParam as a dword.</span></div>
<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>&#160;                <span class="keywordflow">goto</span> fnINSTRINGThunk;</div>
<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>&#160;            }</div>
<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>&#160; </div>
<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>&#160;        <span class="keywordflow">case</span> CB_ADDSTRING:           <span class="comment">// INCBOXSTRING calls fnINSTRING</span></div>
<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>&#160;        <span class="keywordflow">case</span> CB_INSERTSTRING:        <span class="comment">// INCBOXSTRING calls fnINSTRING</span></div>
<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>&#160;        <span class="keywordflow">case</span> CB_SELECTSTRING:        <span class="comment">// INCBOXSTRING calls fnINSTRING</span></div>
<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>&#160;        <span class="keywordflow">case</span> CB_FINDSTRING:          <span class="comment">// INCBOXSTRING calls fnINSTRING</span></div>
<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>&#160;        <span class="keywordflow">case</span> CB_FINDSTRINGEXACT:     <span class="comment">// INCBOXSTRING calls fnINSTRING</span></div>
<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>&#160;<span class="comment">             * See if the control is ownerdraw and does not have the CBS_HASSTRINGS</span></div>
<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>&#160;<span class="comment">             * style. If so, treat lParam as a DWORD.</span></div>
<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>&#160;            <span class="keywordflow">if</span> (pwnd &amp;&amp; !(pwnd-&gt;style &amp; CBS_HASSTRINGS) &amp;&amp;</div>
<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>&#160;                    (pwnd-&gt;style &amp; (CBS_OWNERDRAWFIXED | CBS_OWNERDRAWVARIABLE))) {</div>
<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>&#160; </div>
<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>&#160;<span class="comment">                 * Treat lParam as a dword.</span></div>
<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>&#160;                <span class="keywordflow">goto</span> fnINSTRINGThunk;</div>
<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>&#160;            }</div>
<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>&#160; </div>
<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>&#160;        <span class="keywordflow">case</span> EM_REPLACESEL:         <span class="comment">// fnINSTRINGNULL</span></div>
<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>&#160;        <span class="keywordflow">case</span> WM_SETTEXT:            <span class="comment">// fnINSTRINGNULL</span></div>
<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>&#160;        <span class="keywordflow">case</span> WM_WININICHANGE:       <span class="comment">// fnINSTRINGNULL</span></div>
<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>&#160;            <span class="keywordflow">if</span> (lParam == 0)</div>
<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>&#160; </div>
<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>&#160;<span class="comment">             * Fall through</span></div>
<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>&#160; </div>
<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>&#160;        <span class="keywordflow">case</span> CB_DIR:                <span class="comment">// fnINSTRING</span></div>
<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>&#160;        <span class="keywordflow">case</span> LB_ADDFILE:            <span class="comment">// fnINSTRING</span></div>
<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>&#160;        <span class="keywordflow">case</span> LB_DIR:                <span class="comment">// fnINSTRING</span></div>
<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>&#160;        <span class="keywordflow">case</span> WM_DEVMODECHANGE:      <span class="comment">// fnINSTRING</span></div>
<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>&#160;fnINSTRINGThunk:</div>
<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>&#160; </div>
<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>&#160;<span class="comment">             * Only capture strings if they are not in system space</span></div>
<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>&#160;            str = *(<a class="code" href="a00365.html#aa453bfba298bc156c84c4a04a89b4436">PLARGE_STRING</a>)lParam;</div>
<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>&#160;            lParam = (LPARAM)&amp;str;</div>
<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>&#160; </div>
<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>&#160;            <span class="keywordflow">if</span> (!MM_IS_SYSTEM_VIRTUAL_ADDRESS(str.<a class="code" href="a02449.html#a372d153f4b52e56d80dfa3eba11db02b">Buffer</a>))</div>
<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>&#160;                cbCapture = str.<a class="code" href="a02449.html#abfb371817eb1c8f0d8a165bb2b798092">Length</a> + <span class="keyword">sizeof</span>(WCHAR);</div>
<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>&#160; </div>
<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>&#160;        <span class="keywordflow">case</span> WM_DEVICECHANGE:</div>
<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>&#160;            <span class="keywordflow">if</span> (lParam == 0)</div>
<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>&#160; </div>
<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>&#160;<span class="comment">             * Only capture data if lParam is a pointer and</span></div>
<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>&#160;<span class="comment">             * the data is not in system space</span></div>
<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>&#160;            <span class="keywordflow">if</span> ((wParam &amp; 0x8000) != 0x8000)</div>
<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>&#160; </div>
<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>&#160;            <span class="keywordflow">if</span> (!MM_IS_SYSTEM_VIRTUAL_ADDRESS((LPVOID)lParam))</div>
<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>&#160;                cbCapture = *((<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> *)lpCapture);</div>
<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>&#160; </div>
<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>&#160;        <span class="keywordflow">case</span> EM_SETTABSTOPS:        <span class="comment">// fnPOPTINLPUINT</span></div>
<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>&#160;        <span class="keywordflow">case</span> LB_SETTABSTOPS:        <span class="comment">// fnPOPTINLPUINT</span></div>
<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>&#160;        <span class="keywordflow">case</span> LB_GETSELITEMS:        <span class="comment">// fnPOUTLPINT</span></div>
<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>&#160;            cbCapture = wParam * <span class="keyword">sizeof</span>(<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>);</div>
<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>&#160; </div>
<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>&#160;        <span class="keywordflow">case</span> EM_GETLINE:            <span class="comment">// fnINCNTOUTSTRING</span></div>
<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>&#160;        <span class="keywordflow">case</span> WM_ASKCBFORMATNAME:    <span class="comment">// fnINCNTOUTSTRINGNULL</span></div>
<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>&#160;        <span class="keywordflow">case</span> WM_GETTEXT:            <span class="comment">// fnOUTSTRING</span></div>
<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>&#160;        <span class="keywordflow">case</span> LB_GETTEXT:            <span class="comment">// fnOUTLBOXSTRING</span></div>
<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>&#160;        <span class="keywordflow">case</span> CB_GETLBTEXT:          <span class="comment">// fnOUTCBOXSTRING</span></div>
<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>&#160; </div>
<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>&#160;<span class="comment">             * Only allocate output buffer if the real one is not in system space</span></div>
<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>&#160;            str = *(<a class="code" href="a00365.html#aa453bfba298bc156c84c4a04a89b4436">PLARGE_STRING</a>)lParam;</div>
<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>&#160;<span class="comment">            * Bug 18108. For WM_GETTEXT only copy the actual string and not the</span></div>
<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>&#160;<span class="comment">            * the maximum size into the output buffer</span></div>
<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>&#160;<span class="comment">            */</span></div>
<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>&#160;            <span class="keywordflow">if</span>(str.<a class="code" href="a02449.html#af4ab07640de8950ca1f439bb34be4b53">bAnsi</a>) {</div>
<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>&#160;                fString = <a class="code" href="a00842.html#a8b19ebf797f2258df34176289fee16ff">IsAnsiString</a>  ;</div>
<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>&#160;                fString  = <a class="code" href="a00842.html#a462e0bbeb557ea21b91762d360985ed3">IsUnicodeString</a> ;</div>
<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>&#160;            }</div>
<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>&#160;            lParam = (LPARAM)&amp;str;</div>
<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span>&#160;            <span class="keywordflow">if</span> (!MM_IS_SYSTEM_VIRTUAL_ADDRESS(str.<a class="code" href="a02449.html#a372d153f4b52e56d80dfa3eba11db02b">Buffer</a>))</div>
<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>&#160;                cbCapture = str.<a class="code" href="a02449.html#ad355c4270a8465c419a47e3e68098cf1">MaximumLength</a>;</div>
<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>&#160;        }</div>
<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>&#160;        <span class="keywordflow">if</span> (cbCapture &amp;&amp;</div>
<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>&#160;                (psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a> = UserAllocPoolWithQuota(cbCapture, TAG_SMS)) != NULL) {</div>
<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>&#160; </div>
<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>&#160;            lParamSave = lParam;</div>
<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>&#160; </div>
<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>&#160;<span class="comment">             * now actually copy memory from lpCapture to psms-&gt;pvCapture</span></div>
<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>&#160;<span class="comment">             * and fixup any references to the indirect data to point to</span></div>
<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>&#160;<span class="comment">             * psms-&gt;pvCapture.</span></div>
<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>&#160;            <span class="keywordflow">switch</span> (message) {</div>
<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>&#160;            <span class="keywordflow">case</span> WM_COPYDATA:     <span class="comment">// fnCOPYDATA</span></div>
<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>&#160;                {</div>
<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>&#160;                    PCOPYDATASTRUCT pcdsNew = (PCOPYDATASTRUCT)psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a>;</div>
<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>&#160;                    lParam = (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)pcdsNew;</div>
<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>&#160;                    RtlCopyMemory(pcdsNew, pcds, <span class="keyword">sizeof</span>(COPYDATASTRUCT));</div>
<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>&#160;                    <span class="keywordflow">if</span> (pcds-&gt;lpData) {</div>
<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>&#160;                        pcdsNew-&gt;lpData = (PVOID)((<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)pcdsNew + <span class="keyword">sizeof</span>(COPYDATASTRUCT));</div>
<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>&#160;                        RtlCopyMemory(pcdsNew-&gt;lpData, pcds-&gt;lpData, pcds-&gt;cbData);</div>
<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>&#160;                    }</div>
<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>&#160;                }</div>
<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>&#160;            <span class="keywordflow">case</span> WM_MDICREATE:          <span class="comment">// fnINLPMDICREATESTRUCT</span></div>
<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>&#160;                RtlCopyMemory(psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a>, pmdics-&gt;<a class="code" href="a02933.html#aa7fc615cb4d93cdbb35050784d8d4859">strClass</a>.Buffer,</div>
<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>&#160;                        pmdics-&gt;<a class="code" href="a02933.html#aa7fc615cb4d93cdbb35050784d8d4859">strClass</a>.Length + <span class="keyword">sizeof</span>(WCHAR));</div>
<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>&#160;                pmdics-&gt;<a class="code" href="a02933.html#a3e6fe5ad49f6102c935124878b224602">mdics</a>.szClass = (LPWSTR)psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a>;</div>
<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>&#160;                if (pmdics-&gt;<a class="code" href="a02933.html#a96f916133057e9d37f61758241576801">strTitle</a>.Length) {</div>
<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>&#160;                    lpCapture = (PBYTE)psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a> + pmdics-&gt;<a class="code" href="a02933.html#aa7fc615cb4d93cdbb35050784d8d4859">strClass</a>.Length +</div>
<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>&#160;                            <span class="keyword">sizeof</span>(WCHAR);</div>
<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>&#160;                    RtlCopyMemory(lpCapture, pmdics-&gt;<a class="code" href="a02933.html#a96f916133057e9d37f61758241576801">strTitle</a>.Buffer,</div>
<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>&#160;                            pmdics-&gt;<a class="code" href="a02933.html#a96f916133057e9d37f61758241576801">strTitle</a>.Length + <span class="keyword">sizeof</span>(WCHAR));</div>
<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>&#160;                    pmdics-&gt;<a class="code" href="a02933.html#a3e6fe5ad49f6102c935124878b224602">mdics</a>.szTitle = (LPWSTR)lpCapture;</div>
<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>&#160;                }</div>
<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>&#160; </div>
<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>&#160;            <span class="keywordflow">case</span> CB_DIR:                <span class="comment">// fnINSTRING</span></div>
<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>&#160;            <span class="keywordflow">case</span> LB_FINDSTRING:         <span class="comment">// INLBOXSTRING calls fnINSTRING</span></div>
<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>&#160;            <span class="keywordflow">case</span> LB_FINDSTRINGEXACT:    <span class="comment">// INLBOXSTRING calls fnINSTRING</span></div>
<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>&#160;            <span class="keywordflow">case</span> CB_FINDSTRING:         <span class="comment">// INCBOXSTRING calls fnINSTRING</span></div>
<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>&#160;            <span class="keywordflow">case</span> CB_FINDSTRINGEXACT:    <span class="comment">// INCBOXSTRING calls fnINSTRING</span></div>
<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>&#160;            <span class="keywordflow">case</span> LB_ADDFILE:            <span class="comment">// fnINSTRING</span></div>
<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>&#160;            <span class="keywordflow">case</span> LB_ADDSTRING:          <span class="comment">// INLBOXSTRING calls fnINSTRING</span></div>
<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>&#160;            <span class="keywordflow">case</span> LB_INSERTSTRING:       <span class="comment">// INLBOXSTRING calls fnINSTRING</span></div>
<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>&#160;            <span class="keywordflow">case</span> LB_SELECTSTRING:       <span class="comment">// INLBOXSTRING calls fnINSTRING</span></div>
<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>&#160;            <span class="keywordflow">case</span> CB_ADDSTRING:          <span class="comment">// INCBOXSTRING calls fnINSTRING</span></div>
<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span>&#160;            <span class="keywordflow">case</span> CB_INSERTSTRING:       <span class="comment">// INCBOXSTRING calls fnINSTRING</span></div>
<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>&#160;            <span class="keywordflow">case</span> CB_SELECTSTRING:       <span class="comment">// INCBOXSTRING calls fnINSTRING</span></div>
<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span>&#160;            <span class="keywordflow">case</span> LB_DIR:                <span class="comment">// fnINSTRING</span></div>
<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>&#160;            <span class="keywordflow">case</span> WM_DEVMODECHANGE:      <span class="comment">// fnINSTRING</span></div>
<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>&#160;            <span class="keywordflow">case</span> EM_REPLACESEL:         <span class="comment">// fnINSTRINGNULL</span></div>
<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>&#160;            <span class="keywordflow">case</span> WM_SETTEXT:            <span class="comment">// fnINSTRINGNULL</span></div>
<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span>&#160;            <span class="keywordflow">case</span> WM_WININICHANGE:       <span class="comment">// fnINSTRINGNULL</span></div>
<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>&#160;                RtlCopyMemory(psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a>, str.<a class="code" href="a02449.html#a372d153f4b52e56d80dfa3eba11db02b">Buffer</a>, cbCapture);</div>
<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>&#160;                str.<a class="code" href="a02449.html#a372d153f4b52e56d80dfa3eba11db02b">Buffer</a> = psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a>;</div>
<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>&#160; </div>
<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>&#160;            <span class="keywordflow">case</span> LB_GETSELITEMS:</div>
<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>&#160;                 cbOutput = cbCapture;</div>
<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>&#160;                 RtlCopyMemory(psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a>, lpCapture, cbCapture);</div>
<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>&#160;                 lParam = (LPARAM)psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a>;</div>
<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>&#160;                 <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span>&#160; </div>
<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>&#160;            <span class="keywordflow">case</span> EM_GETLINE:            <span class="comment">// fnINCNTOUTSTRING</span></div>
<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>&#160;                 *(WORD *)psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a> = *(WORD *)str.<a class="code" href="a02449.html#a372d153f4b52e56d80dfa3eba11db02b">Buffer</a>;</div>
<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span>&#160; </div>
<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>&#160;<span class="comment">                 * Fall through</span></div>
<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>&#160;            <span class="keywordflow">case</span> WM_ASKCBFORMATNAME:    <span class="comment">// fnINCNTOUTSTRINGNULL</span></div>
<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>&#160;            <span class="keywordflow">case</span> WM_GETTEXT:            <span class="comment">// fnOUTSTRING</span></div>
<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>&#160;            <span class="keywordflow">case</span> LB_GETTEXT:            <span class="comment">// fnOUTLBOXSTRING</span></div>
<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>&#160;            <span class="keywordflow">case</span> CB_GETLBTEXT:          <span class="comment">// fnOUTCBOXSTRING</span></div>
<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>&#160;                cbOutput = cbCapture;</div>
<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>&#160;                lParamSave = (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)str.<a class="code" href="a02449.html#a372d153f4b52e56d80dfa3eba11db02b">Buffer</a>;</div>
<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>&#160;                str.<a class="code" href="a02449.html#a372d153f4b52e56d80dfa3eba11db02b">Buffer</a> = psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a>;</div>
<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>&#160; </div>
<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>&#160;            <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>&#160;                RtlCopyMemory(psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a>, lpCapture, cbCapture);</div>
<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>&#160;                lParam = (LPARAM)psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a>;</div>
<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>&#160;            }</div>
<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>&#160;        }</div>
<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>&#160;    } except (EXCEPTION_EXECUTE_HANDLER) {</div>
<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>&#160;        <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a> != NULL)</div>
<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>&#160;            UserFreePool(psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a>);</div>
<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>&#160;        <a class="code" href="a00842.html#a5e2cf05ab05318fd5654f254de252686">FreeSMS</a>(psms);</div>
<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>&#160;    }</div>
<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>&#160; </div>
<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>&#160;    <span class="keywordflow">if</span> (cbCapture &amp;&amp; psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a> == NULL) {</div>
<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>&#160;        <a class="code" href="a00842.html#a5e2cf05ab05318fd5654f254de252686">FreeSMS</a>(psms);</div>
<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>&#160;    }</div>
<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>&#160; </div>
<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>&#160;<span class="comment">     * Copy message parms</span></div>
<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>&#160;    psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a> = NULL;</div>
<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>&#160;    psms-&gt;<a class="code" href="a02945.html#a27efa4726ffb5b422ea6d637046cc55a">psmsReceiveNext</a> = NULL;</div>
<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>&#160;<span class="preprocessor">#if DBG</span></div>
<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>&#160;    psms-&gt;<a class="code" href="a02945.html#a037f5951f037130a39c9fd550487f6ef">psmsSendList</a> = NULL;</div>
<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>&#160;    psms-&gt;<a class="code" href="a02945.html#a157200d5cba7c1522e8f64c602d7ea7b">psmsSendNext</a> = NULL;</div>
<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>&#160;    Lock(&amp;(psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>), pwnd);</div>
<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>&#160;    psms-&gt;<a class="code" href="a02945.html#a2878d2b3ecc6a3d2477bc260ee848675">message</a> = message;</div>
<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>&#160;    psms-&gt;<a class="code" href="a02945.html#a7630a07d46e4a34e408cfb326d9d0648">wParam</a> = (ULONG)wParam;</div>
<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>&#160;    psms-&gt;<a class="code" href="a02945.html#a5e6806726c901bac1a235d0caf8deb96">lParam</a> = (ULONG)lParam;</div>
<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>&#160;    psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> = 0;</div>
<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>&#160; </div>
<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>&#160;<span class="comment">     * Link into gpsmsList</span></div>
<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>&#160;    psms-&gt;<a class="code" href="a02945.html#a08fcc422c6f01bad78bfd4c9c9e4ddb6">psmsNext</a> = <a class="code" href="a03257.html#a8f31d83ac0a205f71d1ef0bf7c64ed8b">gpsmsList</a>;</div>
<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>&#160;    <a class="code" href="a03257.html#a8f31d83ac0a205f71d1ef0bf7c64ed8b">gpsmsList</a> = psms;</div>
<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>&#160; </div>
<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>&#160;<span class="comment">     * Time stamp message</span></div>
<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>&#160;    psms-&gt;<a class="code" href="a02945.html#a3fd6896ac063a5ed60d72ed34f133041">tSent</a> = NtGetTickCount();</div>
<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>&#160; </div>
<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>&#160;<span class="comment">     * Set queue fields</span></div>
<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>&#160;    psms-&gt;<a class="code" href="a02945.html#ad9cf28b93724ef783206c2b010f7202d">ptiReceiver</a> = ptiReceiver;</div>
<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>&#160;    psms-&gt;<a class="code" href="a02945.html#af0d1e4ac0443bd32ed966f7e471183b8">ptiSender</a> = ptiSender;</div>
<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>&#160;    psms-&gt;<a class="code" href="a02945.html#af1f37780572110e7cedfd3b27e4c6653">ptiCallBackSender</a> = NULL;</div>
<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>&#160; </div>
<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>&#160;    <span class="keywordflow">if</span> ((pism != NULL) &amp;&amp; (pism-&gt;<a class="code" href="a02949.html#a547498bf050b0628b65f83ba9237ce84">fuCall</a> &amp; ISM_CALLBACK)) {</div>
<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span>&#160;<span class="comment">         * Setup for a SendMessageCallback</span></div>
<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>&#160;        psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= (pism-&gt;<a class="code" href="a02949.html#a547498bf050b0628b65f83ba9237ce84">fuCall</a> &amp; ISM_CB_CLIENT) ? SMF_CB_CLIENT : SMF_CB_SERVER;</div>
<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>&#160;        psms-&gt;<a class="code" href="a02945.html#a7ee9bbcad17fb211571e22478070487e">lpResultCallBack</a> = pism-&gt;<a class="code" href="a02949.html#a7ee9bbcad17fb211571e22478070487e">lpResultCallBack</a>;</div>
<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>&#160;        psms-&gt;<a class="code" href="a02945.html#ad38b92af7d164a277eb2d30b5e65a489">dwData</a> = pism-&gt;<a class="code" href="a02949.html#ad38b92af7d164a277eb2d30b5e65a489">dwData</a>;</div>
<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>&#160; </div>
<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>&#160;        <span class="keywordflow">if</span> (pism-&gt;<a class="code" href="a02949.html#a547498bf050b0628b65f83ba9237ce84">fuCall</a> &amp; ISM_REPLY) {</div>
<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span>&#160;            psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= SMF_CB_REPLY;</div>
<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span>&#160;            psms-&gt;<a class="code" href="a02945.html#a3d5a6d1389eee512ee74e85d7d37988b">lRet</a> = pism-&gt;<a class="code" href="a02949.html#a3d5a6d1389eee512ee74e85d7d37988b">lRet</a>;</div>
<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span>&#160;        } <span class="keywordflow">else</span> {  <span class="comment">/* REQUEST */</span></div>
<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>&#160;            psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= SMF_CB_REQUEST;</div>
<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span>&#160;            psms-&gt;<a class="code" href="a02945.html#af1f37780572110e7cedfd3b27e4c6653">ptiCallBackSender</a> = <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>();</div>
<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>&#160;        }</div>
<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>&#160;    }</div>
<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>&#160; </div>
<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>&#160;<span class="comment">     * Add SMS to the end of the ptiReceiver&#39;s receive list</span></div>
<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>&#160;    ppsms = &amp;ptiReceiver-&gt;<a class="code" href="a02889.html#aa58ea5e7644e85127ac49b6ab8880a12">psmsReceiveList</a>;</div>
<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>&#160;    <span class="keywordflow">while</span> (*ppsms != NULL) {</div>
<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>&#160;        ppsms = &amp;((*ppsms)-&gt;psmsReceiveNext);</div>
<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>&#160;    }</div>
<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>&#160;    *ppsms = psms;</div>
<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>&#160; </div>
<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>&#160;<span class="comment">     * Link this SMS into the SendMsg chain.  Of course only do this if</span></div>
<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>&#160;<span class="comment">     * it&#39;s not from a xxxSendNotifyMessage() call.</span></div>
<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>&#160;<span class="comment">     *</span></div>
<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>&#160;<span class="comment">     * The psmsSendNext field implements a chain of messages being</span></div>
<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>&#160;<span class="comment">     * processed because of an initial SendMsg call.  For example, if</span></div>
<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>&#160;<span class="comment">     * thread A sends message M1 to thread B, which causes B to send</span></div>
<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>&#160;<span class="comment">     * message M2 to thread C, the SendMsg chain is M1-&gt;M2.  If the</span></div>
<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>&#160;<span class="comment">     * system hangs in this situation, the chain is traversed to find</span></div>
<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>&#160;<span class="comment">     * the offending thread (C).</span></div>
<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>&#160;<span class="comment">     *</span></div>
<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>&#160;<span class="comment">     * psms-&gt;psmsSendList always points to the head of this list so</span></div>
<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>&#160;<span class="comment">     * we can tell where to begin a list traversal.</span></div>
<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>&#160;<span class="comment">     *</span></div>
<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>&#160;<span class="comment">     * ptiSender-&gt;psmsCurrent is the last SMS in the chain.</span></div>
<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>&#160;<span class="preprocessor">#if DBG</span></div>
<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>&#160;    <span class="keywordflow">if</span> (ptiSender != NULL &amp;&amp; ptiSender-&gt;<a class="code" href="a02889.html#a99fe3da4061cf81a351510d8e24abe5b">psmsCurrent</a> != NULL) {</div>
<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>&#160;<span class="comment">         * sending queue is currently processing a message sent to it,</span></div>
<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>&#160;<span class="comment">         * so append SMS to the chain.  Link in the new sms because</span></div>
<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>&#160;<span class="comment">         * psmsSendNext may be pointing to a replied-to message.</span></div>
<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>&#160;        psms-&gt;<a class="code" href="a02945.html#a157200d5cba7c1522e8f64c602d7ea7b">psmsSendNext</a> = ptiSender-&gt;<a class="code" href="a02889.html#a99fe3da4061cf81a351510d8e24abe5b">psmsCurrent</a>-&gt;<a class="code" href="a02945.html#a157200d5cba7c1522e8f64c602d7ea7b">psmsSendNext</a>;</div>
<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>&#160;        ptiSender-&gt;<a class="code" href="a02889.html#a99fe3da4061cf81a351510d8e24abe5b">psmsCurrent</a>-&gt;<a class="code" href="a02945.html#a157200d5cba7c1522e8f64c602d7ea7b">psmsSendNext</a> = psms;</div>
<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>&#160;        psms-&gt;<a class="code" href="a02945.html#a037f5951f037130a39c9fd550487f6ef">psmsSendList</a> = ptiSender-&gt;<a class="code" href="a02889.html#a99fe3da4061cf81a351510d8e24abe5b">psmsCurrent</a>-&gt;<a class="code" href="a02945.html#a037f5951f037130a39c9fd550487f6ef">psmsSendList</a>;</div>
<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>&#160; </div>
<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>&#160;<span class="comment">         * sending queue is initiating a send sequence, so put sms at</span></div>
<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>&#160;<span class="comment">         * the head of the chain</span></div>
<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>&#160;        psms-&gt;<a class="code" href="a02945.html#a037f5951f037130a39c9fd550487f6ef">psmsSendList</a> = psms;</div>
<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>&#160;    }</div>
<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>&#160; </div>
<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>&#160;    <span class="keywordflow">if</span> (ptiSender != NULL) {</div>
<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>&#160;<span class="comment">         * ptiSender-&gt;psmsSent marks the most recent message sent from this</span></div>
<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>&#160;<span class="comment">         * thread that has not yet been replied to.  Save the previous value</span></div>
<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>&#160;<span class="comment">         * on the stack so it can be restored when we get the reply.</span></div>
<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>&#160;<span class="comment">         *</span></div>
<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>&#160;<span class="comment">         * This way when an &quot;older&quot; SMS for this thread gets a reply before</span></div>
<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>&#160;<span class="comment">         * the &quot;current&quot; one does, the thread does get woken up.</span></div>
<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>&#160;        psmsSentSave = ptiSender-&gt;<a class="code" href="a02889.html#a9e9fc9ec28f5b2ebac921b669df50531">psmsSent</a>;</div>
<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>&#160;        ptiSender-&gt;<a class="code" href="a02889.html#a9e9fc9ec28f5b2ebac921b669df50531">psmsSent</a> = psms;</div>
<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>&#160; </div>
<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>&#160;<span class="comment">         * Set SMF_RECEIVERFREE since we&#39;ll be returning to</span></div>
<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>&#160;<span class="comment">         * xxxSendNotifyMessage() right away and won&#39;t get a</span></div>
<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>&#160;<span class="comment">         * chance to free it.</span></div>
<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>&#160;        psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= SMF_RECEIVERFREE;</div>
<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>&#160;    }</div>
<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>&#160; </div>
<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>&#160;<span class="preprocessor">#ifdef DEBUG_SMS</span></div>
<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>&#160;    ValidateSmsSendLists(psms);</div>
<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>&#160; </div>
<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>&#160;<span class="comment">     * If we&#39;re not being called from xxxSendNotifyMessage() or</span></div>
<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>&#160;<span class="comment">     * SendMessageCallback(), then sleep while we wait for the reply.</span></div>
<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>&#160;    <span class="keywordflow">if</span> (ptiSender == NULL) {</div>
<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span>&#160;<span class="comment">         * Wake receiver for the sent message</span></div>
<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span>&#160;        <a class="code" href="a00824.html#a7a7fb081b27165c43974d89be67bbad8">SetWakeBit</a>(ptiReceiver, QS_SENDMESSAGE);</div>
<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>&#160; </div>
<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>&#160;        <span class="keywordflow">return</span> (LONG)TRUE;</div>
<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>&#160;        BOOL fTimeOut = FALSE;</div>
<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>&#160;        <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> uTimeout = 0;</div>
<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>&#160;        <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> uWakeMask = QS_SMSREPLY;</div>
<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>&#160; </div>
<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>&#160;<span class="comment">         * Wake up the receiver thread.</span></div>
<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>&#160;        <a class="code" href="a00824.html#a7a7fb081b27165c43974d89be67bbad8">SetWakeBit</a>(ptiReceiver, QS_SENDMESSAGE);</div>
<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>&#160; </div>
<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>&#160;<span class="comment">         * We have 4 sending cases:</span></div>
<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>&#160;<span class="comment">         *</span></div>
<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>&#160;<span class="comment">         * 16 - 16 : yield to the 16 bit receiver</span></div>
<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>&#160;<span class="comment">         * 32 - 16 : no yielding required</span></div>
<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>&#160;<span class="comment">         * 16 - 32 : sender yields while receiver processes the message</span></div>
<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>&#160;<span class="comment">         * 32 - 32 : no yielding required.</span></div>
<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>&#160;        <span class="keywordflow">if</span> (ptiSender-&gt;<a class="code" href="a02889.html#ae8b869ec5b101646649020f5b0fd5d0d">TIF_flags</a> &amp; TIF_16BIT || ptiReceiver-&gt;<a class="code" href="a02889.html#ae8b869ec5b101646649020f5b0fd5d0d">TIF_flags</a> &amp; TIF_16BIT) {</div>
<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>&#160;            <a class="code" href="a00881.html#a282d32ed2a8d185b9af16311b5e464b9">DirectedScheduleTask</a>(ptiSender, ptiReceiver, TRUE, psms);</div>
<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>&#160;        }</div>
<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>&#160; </div>
<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>&#160;<span class="comment">         * Put this thread to sleep until the reply arrives.  First clear</span></div>
<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>&#160;<span class="comment">         * the QS_SMSREPLY bit, then leave the semaphore and go to sleep.</span></div>
<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>&#160;<span class="comment">         *</span></div>
<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>&#160;<span class="comment">         * IMPORTANT:  The QS_SMSREPLY bit is not cleared once we get a</span></div>
<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>&#160;<span class="comment">         * reply because of the following case:</span></div>
<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>&#160;<span class="comment">         *</span></div>
<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>&#160;<span class="comment">         * We&#39;ve recursed a second level into SendMessage() when the first level</span></div>
<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>&#160;<span class="comment">         * receiver thread dies, causing exit list processing to simulate</span></div>
<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>&#160;<span class="comment">         * a reply to the first message.  When the second level send returns,</span></div>
<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>&#160;<span class="comment">         * SleepThread() is called again to get the first reply.</span></div>
<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>&#160;<span class="comment">         *</span></div>
<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>&#160;<span class="comment">         * Keeping QS_SMSREPLY set causes this call to SleepThread()</span></div>
<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>&#160;<span class="comment">         * to return without going to sleep to wait for the reply that has</span></div>
<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>&#160;<span class="comment">         * already happened.</span></div>
<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>&#160;        <span class="keywordflow">if</span> ( pism != NULL ) {</div>
<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>&#160;            <span class="keywordflow">if</span> (pism-&gt;<a class="code" href="a02949.html#a856e9fd858c8bdaf2ebbec24df1de084">fuSend</a> &amp; SMTO_BLOCK) {</div>
<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>&#160;<span class="comment">                 * only wait for a return, all other events will</span></div>
<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>&#160;<span class="comment">                 * be ignored until timeout or return</span></div>
<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>&#160;                uWakeMask |= QS_EXCLUSIVE;</div>
<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>&#160;            }</div>
<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>&#160; </div>
<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>&#160;            uTimeout = pism-&gt;<a class="code" href="a02949.html#ae107724d62987d10ec9c8956bd404195">uTimeout</a>;</div>
<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>&#160;        }</div>
<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>&#160; </div>
<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>&#160; </div>
<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>&#160;<span class="comment">         * Don&#39;t swap this guys stack while sleeping during a sendmessage</span></div>
<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span>&#160;        <span class="keywordflow">if</span> (ptiSender-&gt;<a class="code" href="a02889.html#acb905cc16afd506363b5593dd0ad5dee">cEnterCount</a> == 0) {</div>
<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span>&#160;            BOOLEAN bool;</div>
<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span>&#160; </div>
<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>&#160;            <span class="keywordtype">bool</span> = KeSetKernelStackSwapEnable(FALSE);</div>
<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>&#160;            <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(<span class="keywordtype">bool</span>);</div>
<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>&#160;            <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(ptiSender-&gt;<a class="code" href="a02889.html#acb905cc16afd506363b5593dd0ad5dee">cEnterCount</a> &gt; 0);</div>
<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>&#160;        }</div>
<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>&#160;        ptiSender-&gt;<a class="code" href="a02889.html#acb905cc16afd506363b5593dd0ad5dee">cEnterCount</a>++;</div>
<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span>&#160; </div>
<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>&#160; </div>
<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>&#160;        <span class="keywordflow">while</span> (!(psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_REPLY) &amp;&amp; !fTimeOut) {</div>
<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>&#160;            ptiSender-&gt;<a class="code" href="a02889.html#a6f56a147ff76c3fc48c358f05adb0473">pcti</a>-&gt;<a class="code" href="a02649.html#a2fa9e5ed0186fa6f16c046d47f736ef2">fsChangeBits</a> &amp;= ~QS_SMSREPLY;</div>
<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>&#160; </div>
<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>&#160;<span class="comment">             * If SendMessageTimeout, sleep for timeout amount, else wait</span></div>
<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>&#160;<span class="comment">             * forever.  Since this is not technically a transition to an</span></div>
<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>&#160;<span class="comment">             * idle condition, indicate that this sleep is not going &quot;idle&quot;.</span></div>
<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>&#160;            fTimeOut = !<a class="code" href="a00824.html#a9fdadf9722ab6b6f80c2f840f95b2fd3">xxxSleepThread</a>(uWakeMask, uTimeout, FALSE);</div>
<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>&#160;        }</div>
<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>&#160; </div>
<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>&#160;        <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(ptiSender-&gt;<a class="code" href="a02889.html#acb905cc16afd506363b5593dd0ad5dee">cEnterCount</a> &gt; 0);</div>
<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>&#160;        <span class="keywordflow">if</span> (--ptiSender-&gt;<a class="code" href="a02889.html#acb905cc16afd506363b5593dd0ad5dee">cEnterCount</a> == 0) {</div>
<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>&#160;            BOOLEAN bool;</div>
<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>&#160; </div>
<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>&#160;            <span class="keywordtype">bool</span> = KeSetKernelStackSwapEnable(TRUE);</div>
<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span>&#160; </div>
<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span>&#160;            <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(!<span class="keywordtype">bool</span>);</div>
<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span>&#160;        }</div>
<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span>&#160; </div>
<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>&#160;<span class="comment">         * The reply bit should always be set! (even if we timed out). That</span></div>
<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span>&#160;<span class="comment">         * is because if we&#39;re recursed into intersendmsg, we&#39;re going to</span></div>
<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>&#160;<span class="comment">         * return to the first intersendmsg&#39;s call to SleepThread() - and</span></div>
<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span>&#160;<span class="comment">         * it needs to return back to intersendmsgex to see if its sms</span></div>
<div class="line"><a name="l01759"></a><span class="lineno"> 1759</span>&#160;<span class="comment">         * has been replied to.</span></div>
<div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01761"></a><span class="lineno"> 1761</span>&#160;        <a class="code" href="a00824.html#a7a7fb081b27165c43974d89be67bbad8">SetWakeBit</a>(ptiSender, QS_SMSREPLY);</div>
<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span>&#160; </div>
<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>&#160;<span class="comment">         * Copy out captured data.  If cbOutput != 0 we know</span></div>
<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>&#160;<span class="comment">         * that the output buffer is in user-mode address</span></div>
<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span>&#160;<span class="comment">         * space.</span></div>
<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>&#160;        <span class="keywordflow">if</span> (!fTimeOut &amp;&amp; cbOutput) {</div>
<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>&#160;            PBYTE pbOutput;</div>
<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>&#160;            <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> len;</div>
<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>&#160; </div>
<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>&#160;<span class="comment">             * Probe output buffer if it is in the user&#39;s address space</span></div>
<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>&#160; </div>
<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>&#160;            pbOutput = (PBYTE)lParamSave;</div>
<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span>&#160;            <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>&#160;                <span class="keywordflow">if</span>(fString == <a class="code" href="a00842.html#add838c111b491936750292a866544ada">NoString</a>) {</div>
<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span>&#160;                    RtlCopyMemory((PBYTE)pbOutput, psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a>,</div>
<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span>&#160;                            cbOutput);</div>
<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>&#160;                } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(fString == <a class="code" href="a00842.html#a8b19ebf797f2258df34176289fee16ff">IsAnsiString</a>) {</div>
<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>&#160;                    len = <a class="code" href="a00365.html#adfebdcc6d871e486d1060db7f2bcb0d4">strncpycch</a>((LPSTR)pbOutput,(LPCSTR)psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a>,</div>
<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>&#160;                            cbOutput);</div>
<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>&#160;<span class="preprocessor">                    #ifdef DEBUG</span></div>
<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>&#160;                     len--; <span class="comment">//Length includes terminating NULL char</span></div>
<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span>&#160;                     <span class="keywordflow">if</span>(len != psms-&gt;<a class="code" href="a02945.html#a3d5a6d1389eee512ee74e85d7d37988b">lRet</a>) {</div>
<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span>&#160;                        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>,</div>
<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span>&#160;                            <span class="stringliteral">&quot;Length of the copied string being returned is diffrent from the actual string length&quot;</span>);</div>
<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span>&#160;                     }</div>
<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span>&#160;<span class="preprocessor">                    #endif</span></div>
<div class="line"><a name="l01791"></a><span class="lineno"> 1791</span>&#160;                } <span class="keywordflow">else</span>  { <span class="comment">//IsUnicodeString</span></div>
<div class="line"><a name="l01792"></a><span class="lineno"> 1792</span>&#160;                    len = <a class="code" href="a00365.html#a2313d9960d832da75d595b73ff75d1dc">wcsncpycch</a>((LPWSTR)pbOutput,(LPCWSTR)psms-&gt;<a class="code" href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">pvCapture</a>,</div>
<div class="line"><a name="l01793"></a><span class="lineno"> 1793</span>&#160;                            cbOutput/<span class="keyword">sizeof</span>(WCHAR));</div>
<div class="line"><a name="l01794"></a><span class="lineno"> 1794</span>&#160;<span class="preprocessor">                    #ifdef DEBUG</span></div>
<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span>&#160;                    len--;</div>
<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span>&#160;                     <span class="keywordflow">if</span>(len != psms-&gt;<a class="code" href="a02945.html#a3d5a6d1389eee512ee74e85d7d37988b">lRet</a>) {</div>
<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>&#160;                        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>,</div>
<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>&#160;                            <span class="stringliteral">&quot;Length of the copied string being returned is diffrent from the actual string length&quot;</span>);</div>
<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>&#160;                     }</div>
<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span>&#160;<span class="preprocessor">                    #endif</span></div>
<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>&#160;                }</div>
<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>&#160;            } except (EXCEPTION_EXECUTE_HANDLER) {</div>
<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>&#160;                <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>,</div>
<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>&#160;                        <span class="stringliteral">&quot;Invalid output buffer, status = %x\n&quot;</span>,</div>
<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>&#160;                        GetExceptionCode());</div>
<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>&#160; </div>
<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>&#160;<span class="comment">                 * Return 0 to indicate an error.</span></div>
<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span>&#160;                psms-&gt;<a class="code" href="a02945.html#a3d5a6d1389eee512ee74e85d7d37988b">lRet</a> = 0;</div>
<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>&#160;            }</div>
<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span>&#160;        }</div>
<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span>&#160; </div>
<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>&#160;<span class="comment">         * we now have the reply -- restore psmsSent and save the return value</span></div>
<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span>&#160;        ptiSender-&gt;<a class="code" href="a02889.html#a9e9fc9ec28f5b2ebac921b669df50531">psmsSent</a> = psmsSentSave;</div>
<div class="line"><a name="l01818"></a><span class="lineno"> 1818</span>&#160; </div>
<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span>&#160;        <span class="keywordflow">if</span> (pism == NULL) {</div>
<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span>&#160;            lRet = psms-&gt;<a class="code" href="a02945.html#a3d5a6d1389eee512ee74e85d7d37988b">lRet</a>;</div>
<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01822"></a><span class="lineno"> 1822</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>&#160;<span class="comment">             * save the values off for a SendMesssageTimeOut</span></div>
<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01825"></a><span class="lineno"> 1825</span>&#160;            *pism-&gt;<a class="code" href="a02949.html#a90d568c13a21cdb08e2b4d604ea44c2d">lpdwResult</a> = psms-&gt;<a class="code" href="a02945.html#a3d5a6d1389eee512ee74e85d7d37988b">lRet</a>;</div>
<div class="line"><a name="l01826"></a><span class="lineno"> 1826</span>&#160;            lRet = (!fTimeOut) ? TRUE : FALSE;  <span class="comment">/* do this to ensure ret is T or F... */</span></div>
<div class="line"><a name="l01827"></a><span class="lineno"> 1827</span>&#160; </div>
<div class="line"><a name="l01828"></a><span class="lineno"> 1828</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>&#160;<span class="comment">             * If we did timeout and no reply was received, rely on</span></div>
<div class="line"><a name="l01830"></a><span class="lineno"> 1830</span>&#160;<span class="comment">             * the receiver to free the sms.</span></div>
<div class="line"><a name="l01831"></a><span class="lineno"> 1831</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>&#160;            <span class="keywordflow">if</span> (!(psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_REPLY))</div>
<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span>&#160;                psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= SMF_REPLY | SMF_RECEIVERFREE;</div>
<div class="line"><a name="l01834"></a><span class="lineno"> 1834</span>&#160;        }</div>
<div class="line"><a name="l01835"></a><span class="lineno"> 1835</span>&#160; </div>
<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01837"></a><span class="lineno"> 1837</span>&#160;<span class="comment">         * If the reply came while the receiver is still processing</span></div>
<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span>&#160;<span class="comment">         * the sms, force the receiver to free the sms.  This can occur</span></div>
<div class="line"><a name="l01839"></a><span class="lineno"> 1839</span>&#160;<span class="comment">         * via timeout, ReplyMessage or journal cancel.</span></div>
<div class="line"><a name="l01840"></a><span class="lineno"> 1840</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01841"></a><span class="lineno"> 1841</span>&#160;        <span class="keywordflow">if</span> ((psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; (SMF_RECEIVERBUSY | SMF_RECEIVEDMESSAGE)) !=</div>
<div class="line"><a name="l01842"></a><span class="lineno"> 1842</span>&#160;                SMF_RECEIVEDMESSAGE) {</div>
<div class="line"><a name="l01843"></a><span class="lineno"> 1843</span>&#160;            psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= SMF_RECEIVERFREE;</div>
<div class="line"><a name="l01844"></a><span class="lineno"> 1844</span>&#160;        }</div>
<div class="line"><a name="l01845"></a><span class="lineno"> 1845</span>&#160; </div>
<div class="line"><a name="l01846"></a><span class="lineno"> 1846</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01847"></a><span class="lineno"> 1847</span>&#160;<span class="comment">         * Unlink the SMS structure from both the SendMsg chain and gpsmsList</span></div>
<div class="line"><a name="l01848"></a><span class="lineno"> 1848</span>&#160;<span class="comment">         * list and free it.  This sms could be anywhere in the chain.</span></div>
<div class="line"><a name="l01849"></a><span class="lineno"> 1849</span>&#160;<span class="comment">         *</span></div>
<div class="line"><a name="l01850"></a><span class="lineno"> 1850</span>&#160;<span class="comment">         * If the SMS was replied to by a thread other than the receiver</span></div>
<div class="line"><a name="l01851"></a><span class="lineno"> 1851</span>&#160;<span class="comment">         * (ie.  through ReplyMessage()), we don&#39;t free the SMS because the</span></div>
<div class="line"><a name="l01852"></a><span class="lineno"> 1852</span>&#160;<span class="comment">         * receiver is still processing it and will free it when done.</span></div>
<div class="line"><a name="l01853"></a><span class="lineno"> 1853</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01854"></a><span class="lineno"> 1854</span>&#160;        <span class="keywordflow">if</span> (!(psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_RECEIVERFREE)) {</div>
<div class="line"><a name="l01855"></a><span class="lineno"> 1855</span>&#160;            <a class="code" href="a00842.html#aa38ed6c2085098ea4fb3fb3e84095bc3">UnlinkSendListSms</a>(psms, NULL);</div>
<div class="line"><a name="l01856"></a><span class="lineno"> 1856</span>&#160;        }</div>
<div class="line"><a name="l01857"></a><span class="lineno"> 1857</span>&#160;    }</div>
<div class="line"><a name="l01858"></a><span class="lineno"> 1858</span>&#160; </div>
<div class="line"><a name="l01859"></a><span class="lineno"> 1859</span>&#160;    <span class="keywordflow">return</span> lRet;</div>
<div class="line"><a name="l01860"></a><span class="lineno"> 1860</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00842_source.html#l00150">AllocSMS()</a>, <a class="el" href="a00365_source.html#l00269">_LARGE_STRING::bAnsi</a>, <a class="el" href="a00365_source.html#l00270">_LARGE_STRING::Buffer</a>, <a class="el" href="a00899_source.html#l02269">tagTHREADINFO::cEnterCount</a>, <a class="el" href="a00881_source.html#l00575">DirectedScheduleTask()</a>, <a class="el" href="a00899_source.html#l02605">tagSMS::dwData</a>, <a class="el" href="a00899_source.html#l02643">tagINTERSENDMSGEX::dwData</a>, <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00899_source.html#l02609">tagSMS::flags</a>, <a class="el" href="a00842_source.html#l00193">FreeSMS()</a>, <a class="el" href="a00365_source.html#l02217">tagCLIENTTHREADINFO::fsChangeBits</a>, <a class="el" href="a00899_source.html#l02640">tagINTERSENDMSGEX::fuCall</a>, <a class="el" href="a00899_source.html#l02646">tagINTERSENDMSGEX::fuSend</a>, <a class="el" href="a03257_source.html#l00174">gpsmsList</a>, <a class="el" href="a00842_source.html#l01232">IsAnsiString</a>, <a class="el" href="a00842_source.html#l01233">IsUnicodeString</a>, <a class="el" href="a00365_source.html#l00267">_LARGE_STRING::Length</a>, <a class="el" href="a00899_source.html#l02611">tagSMS::lParam</a>, <a class="el" href="a00899_source.html#l02648">tagINTERSENDMSGEX::lpdwResult</a>, <a class="el" href="a00899_source.html#l02604">tagSMS::lpResultCallBack</a>, <a class="el" href="a00899_source.html#l02642">tagINTERSENDMSGEX::lpResultCallBack</a>, <a class="el" href="a00899_source.html#l02608">tagSMS::lRet</a>, <a class="el" href="a00899_source.html#l02644">tagINTERSENDMSGEX::lRet</a>, <a class="el" href="a00365_source.html#l00268">_LARGE_STRING::MaximumLength</a>, <a class="el" href="a00899_source.html#l02574">_MDICREATESTRUCTEX::mdics</a>, <a class="el" href="a00899_source.html#l02612">tagSMS::message</a>, <a class="el" href="a00842_source.html#l01231">NoString</a>, <a class="el" href="a00899_source.html#l02280">tagTHREADINFO::pcti</a>, <a class="el" href="a00899_source.html#l02299">tagTHREADINFO::psmsCurrent</a>, <a class="el" href="a00899_source.html#l02594">tagSMS::psmsNext</a>, <a class="el" href="a00899_source.html#l02300">tagTHREADINFO::psmsReceiveList</a>, <a class="el" href="a00899_source.html#l02599">tagSMS::psmsReceiveNext</a>, <a class="el" href="a00899_source.html#l02596">tagSMS::psmsSendList</a>, <a class="el" href="a00899_source.html#l02597">tagSMS::psmsSendNext</a>, <a class="el" href="a00899_source.html#l02298">tagTHREADINFO::psmsSent</a>, <a class="el" href="a00899_source.html#l02606">tagSMS::ptiCallBackSender</a>, <a class="el" href="a00263_source.html#l00526">PtiCurrent()</a>, <a class="el" href="a00899_source.html#l02602">tagSMS::ptiReceiver</a>, <a class="el" href="a00899_source.html#l02601">tagSMS::ptiSender</a>, <a class="el" href="a00899_source.html#l02614">tagSMS::pvCapture</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00131">RIPMSG0</a>, <a class="el" href="a00371_source.html#l00132">RIPMSG1</a>, <a class="el" href="a00824_source.html#l03276">SetWakeBit()</a>, <a class="el" href="a00899_source.html#l02613">tagSMS::spwnd</a>, <a class="el" href="a00899_source.html#l02576">_MDICREATESTRUCTEX::strClass</a>, <a class="el" href="a03650_source.html#l00184">strncpycch()</a>, <a class="el" href="a00899_source.html#l02575">_MDICREATESTRUCTEX::strTitle</a>, <a class="el" href="a00899_source.html#l02294">tagTHREADINFO::TIF_flags</a>, <a class="el" href="a00899_source.html#l02600">tagSMS::tSent</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>, <a class="el" href="a00842_source.html#l02689">UnlinkSendListSms()</a>, <a class="el" href="a00950_source.html#l00117">UserAssert</a>, <a class="el" href="a00899_source.html#l02647">tagINTERSENDMSGEX::uTimeout</a>, <a class="el" href="a03650_source.html#l00146">wcsncpycch()</a>, <a class="el" href="a00899_source.html#l02610">tagSMS::wParam</a> , 以及 <a class="el" href="a00824_source.html#l03096">xxxSleepThread()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00842_source.html#l00227">_ReplyMessage()</a>, <a class="el" href="a00842_source.html#l02319">ClearSendMessages()</a>, <a class="el" href="a00842_source.html#l02453">ReceiverDied()</a>, <a class="el" href="a00701_source.html#l00996">xxxCallHook2()</a>, <a class="el" href="a00842_source.html#l01876">xxxReceiveMessage()</a>, <a class="el" href="a00842_source.html#l01013">xxxSendMessageCallback()</a> , 以及 <a class="el" href="a00842_source.html#l00644">xxxSendMessageTimeout()</a>.</p>

</div>
</div>
<a id="a69520c6e8309eb271485683d2bae262a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69520c6e8309eb271485683d2bae262a">&#9670;&nbsp;</a></span>xxxProcessAsyncSendMessage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID xxxProcessAsyncSendMessage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00899.html#a039f7fd6f36069ebd5cd93bce4e70751">PASYNCSENDMSG</a>&#160;</td>
          <td class="paramname"><em>pmsg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l02852">2852</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02854"></a><span class="lineno"> 2854</span>&#160;{</div>
<div class="line"><a name="l02855"></a><span class="lineno"> 2855</span>&#160;    <a class="code" href="a02581.html">PWND</a> pwnd;</div>
<div class="line"><a name="l02856"></a><span class="lineno"> 2856</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpwndT;</div>
<div class="line"><a name="l02857"></a><span class="lineno"> 2857</span>&#160;    WCHAR awchString[MAX_PATH];</div>
<div class="line"><a name="l02858"></a><span class="lineno"> 2858</span>&#160;    ATOM Atom = 0;</div>
<div class="line"><a name="l02859"></a><span class="lineno"> 2859</span>&#160;    <a class="code" href="a02457.html">LARGE_UNICODE_STRING</a> str;</div>
<div class="line"><a name="l02860"></a><span class="lineno"> 2860</span>&#160; </div>
<div class="line"><a name="l02861"></a><span class="lineno"> 2861</span>&#160;    pwnd = RevalidateHwnd(pmsg-&gt;<a class="code" href="a02953.html#aa72255e7356d612ad72bb45def01fcbb">hwnd</a>);</div>
<div class="line"><a name="l02862"></a><span class="lineno"> 2862</span>&#160;    <span class="keywordflow">if</span> (pwnd != NULL) {</div>
<div class="line"><a name="l02863"></a><span class="lineno"> 2863</span>&#160;        ThreadLockAlways(pwnd, &amp;tlpwndT);</div>
<div class="line"><a name="l02864"></a><span class="lineno"> 2864</span>&#160;        <span class="keywordflow">switch</span> (pmsg-&gt;<a class="code" href="a02953.html#a2878d2b3ecc6a3d2477bc260ee848675">message</a>) {</div>
<div class="line"><a name="l02865"></a><span class="lineno"> 2865</span>&#160;        <span class="keywordflow">case</span> WM_WININICHANGE:</div>
<div class="line"><a name="l02866"></a><span class="lineno"> 2866</span>&#160;        <span class="keywordflow">case</span> WM_DEVMODECHANGE:</div>
<div class="line"><a name="l02867"></a><span class="lineno"> 2867</span>&#160;            <span class="keywordflow">if</span> (pmsg-&gt;<a class="code" href="a02953.html#a5e6806726c901bac1a235d0caf8deb96">lParam</a>) {</div>
<div class="line"><a name="l02868"></a><span class="lineno"> 2868</span>&#160;                <span class="keywordflow">if</span> (GetAtomNameW((ATOM)pmsg-&gt;<a class="code" href="a02953.html#a5e6806726c901bac1a235d0caf8deb96">lParam</a>, awchString, <span class="keyword">sizeof</span>(awchString))) {</div>
<div class="line"><a name="l02869"></a><span class="lineno"> 2869</span>&#160;                    Atom = (ATOM)pmsg-&gt;<a class="code" href="a02953.html#a5e6806726c901bac1a235d0caf8deb96">lParam</a>;</div>
<div class="line"><a name="l02870"></a><span class="lineno"> 2870</span>&#160;                    <a class="code" href="a00365.html#a4dddfac60ddaa5a11f91719826b7b270">RtlInitLargeUnicodeString</a>(&amp;str, awchString, (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)-1);</div>
<div class="line"><a name="l02871"></a><span class="lineno"> 2871</span>&#160;                    pmsg-&gt;<a class="code" href="a02953.html#a5e6806726c901bac1a235d0caf8deb96">lParam</a> = (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)&amp;str;</div>
<div class="line"><a name="l02872"></a><span class="lineno"> 2872</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02873"></a><span class="lineno"> 2873</span>&#160;                    <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(FALSE);</div>
<div class="line"><a name="l02874"></a><span class="lineno"> 2874</span>&#160;                    pmsg-&gt;<a class="code" href="a02953.html#a5e6806726c901bac1a235d0caf8deb96">lParam</a> = 0;</div>
<div class="line"><a name="l02875"></a><span class="lineno"> 2875</span>&#160;                }</div>
<div class="line"><a name="l02876"></a><span class="lineno"> 2876</span>&#160;            }</div>
<div class="line"><a name="l02877"></a><span class="lineno"> 2877</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02878"></a><span class="lineno"> 2878</span>&#160;        }</div>
<div class="line"><a name="l02879"></a><span class="lineno"> 2879</span>&#160;        <a class="code" href="a00842.html#a69cf2e14dcefd941469ad5126e40f79a">xxxSendMessage</a>(pwnd, pmsg-&gt;<a class="code" href="a02953.html#a2878d2b3ecc6a3d2477bc260ee848675">message</a>, pmsg-&gt;<a class="code" href="a02953.html#a7630a07d46e4a34e408cfb326d9d0648">wParam</a>, pmsg-&gt;<a class="code" href="a02953.html#a5e6806726c901bac1a235d0caf8deb96">lParam</a>);</div>
<div class="line"><a name="l02880"></a><span class="lineno"> 2880</span>&#160;        ThreadUnlock(&amp;tlpwndT);</div>
<div class="line"><a name="l02881"></a><span class="lineno"> 2881</span>&#160;    }</div>
<div class="line"><a name="l02882"></a><span class="lineno"> 2882</span>&#160;    <span class="keywordflow">if</span> (Atom) {</div>
<div class="line"><a name="l02883"></a><span class="lineno"> 2883</span>&#160;        DeleteAtom(Atom);</div>
<div class="line"><a name="l02884"></a><span class="lineno"> 2884</span>&#160;    }</div>
<div class="line"><a name="l02885"></a><span class="lineno"> 2885</span>&#160;    UserFreePool(pmsg);</div>
<div class="line"><a name="l02886"></a><span class="lineno"> 2886</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00899_source.html#l02664">tagASYNCSENDMSG::hwnd</a>, <a class="el" href="a00899_source.html#l02662">tagASYNCSENDMSG::lParam</a>, <a class="el" href="a00899_source.html#l02663">tagASYNCSENDMSG::message</a>, <a class="el" href="a00932_source.html#l00587">RtlInitLargeUnicodeString()</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>, <a class="el" href="a00950_source.html#l00117">UserAssert</a>, <a class="el" href="a00899_source.html#l02661">tagASYNCSENDMSG::wParam</a> , 以及 <a class="el" href="a00842_source.html#l00613">xxxSendMessage()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00824_source.html#l02682">xxxProcessEventMessage()</a>.</p>

</div>
</div>
<a id="a24206b71ec0adad87b933a8b364e90c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24206b71ec0adad87b933a8b364e90c1">&#9670;&nbsp;</a></span>xxxReceiveMessage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID xxxReceiveMessage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a177dce23f2b497ba8dc22f5a92d3f3d3">PTHREADINFO</a>&#160;</td>
          <td class="paramname"><em>ptiReceiver</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l01876">1876</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l01878"></a><span class="lineno"> 1878</span>&#160;{</div>
<div class="line"><a name="l01879"></a><span class="lineno"> 1879</span>&#160;    <a class="code" href="a02945.html">PSMS</a> psms;</div>
<div class="line"><a name="l01880"></a><span class="lineno"> 1880</span>&#160;    <a class="code" href="a02945.html">PSMS</a> psmsCurrentSave;</div>
<div class="line"><a name="l01881"></a><span class="lineno"> 1881</span>&#160;    <a class="code" href="a02889.html">PTHREADINFO</a> ptiSender;</div>
<div class="line"><a name="l01882"></a><span class="lineno"> 1882</span>&#160;    LONG lRet = 0;</div>
<div class="line"><a name="l01883"></a><span class="lineno"> 1883</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpwnd;</div>
<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span>&#160; </div>
<div class="line"><a name="l01885"></a><span class="lineno"> 1885</span>&#160;    CheckCritIn();</div>
<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span>&#160; </div>
<div class="line"><a name="l01887"></a><span class="lineno"> 1887</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01888"></a><span class="lineno"> 1888</span>&#160;<span class="comment">     * Get the SMS and unlink it from the list of SMSs we&#39;ve received</span></div>
<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01890"></a><span class="lineno"> 1890</span>&#160;    psms = ptiReceiver-&gt;<a class="code" href="a02889.html#aa58ea5e7644e85127ac49b6ab8880a12">psmsReceiveList</a>;</div>
<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span>&#160; </div>
<div class="line"><a name="l01892"></a><span class="lineno"> 1892</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01893"></a><span class="lineno"> 1893</span>&#160;<span class="comment">     * This can be NULL because an SMS can be removed in our cleanup</span></div>
<div class="line"><a name="l01894"></a><span class="lineno"> 1894</span>&#160;<span class="comment">     * code without clearing the QS_SENDMESSAGE bit.</span></div>
<div class="line"><a name="l01895"></a><span class="lineno"> 1895</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01896"></a><span class="lineno"> 1896</span>&#160;    <span class="keywordflow">if</span> (psms == NULL) {</div>
<div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>&#160;        ptiReceiver-&gt;<a class="code" href="a02889.html#a6f56a147ff76c3fc48c358f05adb0473">pcti</a>-&gt;<a class="code" href="a02649.html#a1fc053b04d0e037452d1efb7426bd89c">fsWakeBits</a> &amp;= ~QS_SENDMESSAGE;</div>
<div class="line"><a name="l01898"></a><span class="lineno"> 1898</span>&#160;        ptiReceiver-&gt;<a class="code" href="a02889.html#a6f56a147ff76c3fc48c358f05adb0473">pcti</a>-&gt;<a class="code" href="a02649.html#a2fa9e5ed0186fa6f16c046d47f736ef2">fsChangeBits</a> &amp;= ~QS_SENDMESSAGE;</div>
<div class="line"><a name="l01899"></a><span class="lineno"> 1899</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l01900"></a><span class="lineno"> 1900</span>&#160;    }</div>
<div class="line"><a name="l01901"></a><span class="lineno"> 1901</span>&#160; </div>
<div class="line"><a name="l01902"></a><span class="lineno"> 1902</span>&#160;    ptiReceiver-&gt;<a class="code" href="a02889.html#aa58ea5e7644e85127ac49b6ab8880a12">psmsReceiveList</a> = psms-&gt;<a class="code" href="a02945.html#a27efa4726ffb5b422ea6d637046cc55a">psmsReceiveNext</a>;</div>
<div class="line"><a name="l01903"></a><span class="lineno"> 1903</span>&#160;    psms-&gt;<a class="code" href="a02945.html#a27efa4726ffb5b422ea6d637046cc55a">psmsReceiveNext</a> = NULL;</div>
<div class="line"><a name="l01904"></a><span class="lineno"> 1904</span>&#160; </div>
<div class="line"><a name="l01905"></a><span class="lineno"> 1905</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01906"></a><span class="lineno"> 1906</span>&#160;<span class="comment">     * We&#39;ve taken the SMS off the receive list - mark the SMS with this</span></div>
<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span>&#160;<span class="comment">     * information - used during cleanup.</span></div>
<div class="line"><a name="l01908"></a><span class="lineno"> 1908</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01909"></a><span class="lineno"> 1909</span>&#160;    psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= SMF_RECEIVERBUSY | SMF_RECEIVEDMESSAGE;</div>
<div class="line"><a name="l01910"></a><span class="lineno"> 1910</span>&#160; </div>
<div class="line"><a name="l01911"></a><span class="lineno"> 1911</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01912"></a><span class="lineno"> 1912</span>&#160;<span class="comment">     * Clear QS_SENDMESSAGE wakebit if list is now empty</span></div>
<div class="line"><a name="l01913"></a><span class="lineno"> 1913</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01914"></a><span class="lineno"> 1914</span>&#160;    <span class="keywordflow">if</span> (ptiReceiver-&gt;<a class="code" href="a02889.html#aa58ea5e7644e85127ac49b6ab8880a12">psmsReceiveList</a> == NULL) {</div>
<div class="line"><a name="l01915"></a><span class="lineno"> 1915</span>&#160;        ptiReceiver-&gt;<a class="code" href="a02889.html#a6f56a147ff76c3fc48c358f05adb0473">pcti</a>-&gt;<a class="code" href="a02649.html#a1fc053b04d0e037452d1efb7426bd89c">fsWakeBits</a> &amp;= ~QS_SENDMESSAGE;</div>
<div class="line"><a name="l01916"></a><span class="lineno"> 1916</span>&#160;        ptiReceiver-&gt;<a class="code" href="a02889.html#a6f56a147ff76c3fc48c358f05adb0473">pcti</a>-&gt;<a class="code" href="a02649.html#a2fa9e5ed0186fa6f16c046d47f736ef2">fsChangeBits</a> &amp;= ~QS_SENDMESSAGE;</div>
<div class="line"><a name="l01917"></a><span class="lineno"> 1917</span>&#160;    }</div>
<div class="line"><a name="l01918"></a><span class="lineno"> 1918</span>&#160; </div>
<div class="line"><a name="l01919"></a><span class="lineno"> 1919</span>&#160;    ptiSender = psms-&gt;<a class="code" href="a02945.html#af0d1e4ac0443bd32ed966f7e471183b8">ptiSender</a>;</div>
<div class="line"><a name="l01920"></a><span class="lineno"> 1920</span>&#160; </div>
<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span>&#160;    <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_CB_REPLY) {</div>
<div class="line"><a name="l01922"></a><span class="lineno"> 1922</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01923"></a><span class="lineno"> 1923</span>&#160;<span class="comment">         * From SendMessageCallback REPLY to callback.  We need to call</span></div>
<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span>&#160;<span class="comment">         * the call back function to give the return value.</span></div>
<div class="line"><a name="l01925"></a><span class="lineno"> 1925</span>&#160;<span class="comment">         * Don&#39;t process any this message, just mechanism for notification</span></div>
<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span>&#160;<span class="comment">         * the sender&#39;s thread lock is already gone, so we need to re-lock here.</span></div>
<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01928"></a><span class="lineno"> 1928</span>&#160;        <span class="keywordflow">if</span> (ptiSender == NULL) {</div>
<div class="line"><a name="l01929"></a><span class="lineno"> 1929</span>&#160;            <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, &amp;tlpwnd);</div>
<div class="line"><a name="l01930"></a><span class="lineno"> 1930</span>&#160;        }</div>
<div class="line"><a name="l01931"></a><span class="lineno"> 1931</span>&#160; </div>
<div class="line"><a name="l01932"></a><span class="lineno"> 1932</span>&#160;        <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_CB_CLIENT) {</div>
<div class="line"><a name="l01933"></a><span class="lineno"> 1933</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01934"></a><span class="lineno"> 1934</span>&#160;<span class="comment">             * Application-defined callback proc is neither Unicode nor ANSI</span></div>
<div class="line"><a name="l01935"></a><span class="lineno"> 1935</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01936"></a><span class="lineno"> 1936</span>&#160;            CallClientProcA(psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, psms-&gt;<a class="code" href="a02945.html#a2878d2b3ecc6a3d2477bc260ee848675">message</a>, psms-&gt;<a class="code" href="a02945.html#ad38b92af7d164a277eb2d30b5e65a489">dwData</a>,</div>
<div class="line"><a name="l01937"></a><span class="lineno"> 1937</span>&#160;                    psms-&gt;<a class="code" href="a02945.html#a3d5a6d1389eee512ee74e85d7d37988b">lRet</a>, (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)psms-&gt;<a class="code" href="a02945.html#a7ee9bbcad17fb211571e22478070487e">lpResultCallBack</a>);</div>
<div class="line"><a name="l01938"></a><span class="lineno"> 1938</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01939"></a><span class="lineno"> 1939</span>&#160;            psms-&gt;<a class="code" href="a02945.html#a7ee9bbcad17fb211571e22478070487e">lpResultCallBack</a>(HW(psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>), psms-&gt;<a class="code" href="a02945.html#a2878d2b3ecc6a3d2477bc260ee848675">message</a>,</div>
<div class="line"><a name="l01940"></a><span class="lineno"> 1940</span>&#160;                    psms-&gt;<a class="code" href="a02945.html#ad38b92af7d164a277eb2d30b5e65a489">dwData</a>, psms-&gt;<a class="code" href="a02945.html#a3d5a6d1389eee512ee74e85d7d37988b">lRet</a>);</div>
<div class="line"><a name="l01941"></a><span class="lineno"> 1941</span>&#160;        }</div>
<div class="line"><a name="l01942"></a><span class="lineno"> 1942</span>&#160; </div>
<div class="line"><a name="l01943"></a><span class="lineno"> 1943</span>&#160;        <span class="keywordflow">if</span> (ptiSender == NULL) {</div>
<div class="line"><a name="l01944"></a><span class="lineno"> 1944</span>&#160;            ThreadUnlock(&amp;tlpwnd);</div>
<div class="line"><a name="l01945"></a><span class="lineno"> 1945</span>&#160;        }</div>
<div class="line"><a name="l01946"></a><span class="lineno"> 1946</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!(psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; (SMF_REPLY | SMF_SENDERDIED | SMF_RECEIVERDIED))) {</div>
<div class="line"><a name="l01947"></a><span class="lineno"> 1947</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01948"></a><span class="lineno"> 1948</span>&#160;<span class="comment">         * Don&#39;t process message if it has been replied to already or</span></div>
<div class="line"><a name="l01949"></a><span class="lineno"> 1949</span>&#160;<span class="comment">         * if the sending or receiving thread has died</span></div>
<div class="line"><a name="l01950"></a><span class="lineno"> 1950</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01951"></a><span class="lineno"> 1951</span>&#160; </div>
<div class="line"><a name="l01952"></a><span class="lineno"> 1952</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01953"></a><span class="lineno"> 1953</span>&#160;<span class="comment">         * Set new psmsCurrent for this queue, saving the current one</span></div>
<div class="line"><a name="l01954"></a><span class="lineno"> 1954</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01955"></a><span class="lineno"> 1955</span>&#160;        psmsCurrentSave = ptiReceiver-&gt;<a class="code" href="a02889.html#a99fe3da4061cf81a351510d8e24abe5b">psmsCurrent</a>;</div>
<div class="line"><a name="l01956"></a><span class="lineno"> 1956</span>&#160;        ptiReceiver-&gt;<a class="code" href="a02889.html#a99fe3da4061cf81a351510d8e24abe5b">psmsCurrent</a> = psms;</div>
<div class="line"><a name="l01957"></a><span class="lineno"> 1957</span>&#160; </div>
<div class="line"><a name="l01958"></a><span class="lineno"> 1958</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01959"></a><span class="lineno"> 1959</span>&#160;<span class="comment">         * If this SMS originated from a xxxSendNotifyMessage() or a</span></div>
<div class="line"><a name="l01960"></a><span class="lineno"> 1960</span>&#160;<span class="comment">         * xxxSendMessageCallback() call, the sender&#39;s thread lock is</span></div>
<div class="line"><a name="l01961"></a><span class="lineno"> 1961</span>&#160;<span class="comment">         * already gone, so we need to re-lock here.</span></div>
<div class="line"><a name="l01962"></a><span class="lineno"> 1962</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01963"></a><span class="lineno"> 1963</span>&#160;        <span class="keywordflow">if</span> (ptiSender == NULL) {</div>
<div class="line"><a name="l01964"></a><span class="lineno"> 1964</span>&#160;            <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, &amp;tlpwnd);</div>
<div class="line"><a name="l01965"></a><span class="lineno"> 1965</span>&#160;        }</div>
<div class="line"><a name="l01966"></a><span class="lineno"> 1966</span>&#160; </div>
<div class="line"><a name="l01967"></a><span class="lineno"> 1967</span>&#160;        <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#a2878d2b3ecc6a3d2477bc260ee848675">message</a> == WM_HOOKMSG) {</div>
<div class="line"><a name="l01968"></a><span class="lineno"> 1968</span>&#160;            <span class="keyword">union </span>{</div>
<div class="line"><a name="l01969"></a><span class="lineno"> 1969</span>&#160;                EVENTMSG emsg;          <span class="comment">// WH_JOURNALRECORD/PLAYBACK</span></div>
<div class="line"><a name="l01970"></a><span class="lineno"> 1970</span>&#160;                MOUSEHOOKSTRUCT mhs;    <span class="comment">// WH_MOUSE</span></div>
<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span>&#160;            } LocalData;</div>
<div class="line"><a name="l01972"></a><span class="lineno"> 1972</span>&#160;            PVOID pSendersData;</div>
<div class="line"><a name="l01973"></a><span class="lineno"> 1973</span>&#160;            <a class="code" href="a02957.html">PHOOKMSGSTRUCT</a> phkmp;</div>
<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span>&#160;            <span class="keywordtype">int</span> iHook;</div>
<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>&#160;            BOOL bAnsiHook;</div>
<div class="line"><a name="l01976"></a><span class="lineno"> 1976</span>&#160; </div>
<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span>&#160;<span class="comment">             * Some hook types (eg: WH_JOURNALPLAYBACK) pass pointers to</span></div>
<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span>&#160;<span class="comment">             * data in the calling thread&#39;s stack.  We must copy this to our</span></div>
<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span>&#160;<span class="comment">             * own (called thread&#39;s) stack for safety because of the way this</span></div>
<div class="line"><a name="l01981"></a><span class="lineno"> 1981</span>&#160;<span class="comment">             * &quot;message&quot; is handled and in case the calling thread dies. #13577</span></div>
<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span>&#160;<span class="comment">             *</span></div>
<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>&#160;<span class="comment">             * Originally only WH_JOURNALRECORD and WH_JOURNALPLAYBACK went</span></div>
<div class="line"><a name="l01984"></a><span class="lineno"> 1984</span>&#160;<span class="comment">             * through this code, but now all sorts of hooks do.</span></div>
<div class="line"><a name="l01985"></a><span class="lineno"> 1985</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01986"></a><span class="lineno"> 1986</span>&#160;            phkmp = (<a class="code" href="a00899.html#aafb0cfe8c268c1163a46d51fbeffc59e">PHOOKMSGSTRUCT</a>)psms-&gt;<a class="code" href="a02945.html#a5e6806726c901bac1a235d0caf8deb96">lParam</a>;</div>
<div class="line"><a name="l01987"></a><span class="lineno"> 1987</span>&#160;            pSendersData = (PVOID)(phkmp-&gt;<a class="code" href="a02957.html#a5e6806726c901bac1a235d0caf8deb96">lParam</a>);</div>
<div class="line"><a name="l01988"></a><span class="lineno"> 1988</span>&#160;            iHook = phkmp-&gt;<a class="code" href="a02957.html#a3f2e77d2d2e1bf5f78badcb79a56ea9e">phk</a>-&gt;<a class="code" href="a02593.html#afb3d7001b68180cb9b2b8021a79d43aa">iHook</a>;</div>
<div class="line"><a name="l01989"></a><span class="lineno"> 1989</span>&#160; </div>
<div class="line"><a name="l01990"></a><span class="lineno"> 1990</span>&#160;            <span class="keywordflow">switch</span> (iHook) {</div>
<div class="line"><a name="l01991"></a><span class="lineno"> 1991</span>&#160;            <span class="keywordflow">case</span> WH_JOURNALRECORD:</div>
<div class="line"><a name="l01992"></a><span class="lineno"> 1992</span>&#160;            <span class="keywordflow">case</span> WH_JOURNALPLAYBACK:</div>
<div class="line"><a name="l01993"></a><span class="lineno"> 1993</span>&#160;                <span class="keywordflow">if</span> (pSendersData)</div>
<div class="line"><a name="l01994"></a><span class="lineno"> 1994</span>&#160;                    LocalData.emsg = *(PEVENTMSG)pSendersData;</div>
<div class="line"><a name="l01995"></a><span class="lineno"> 1995</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01996"></a><span class="lineno"> 1996</span>&#160; </div>
<div class="line"><a name="l01997"></a><span class="lineno"> 1997</span>&#160;            <span class="keywordflow">case</span> WH_MOUSE:</div>
<div class="line"><a name="l01998"></a><span class="lineno"> 1998</span>&#160;                <span class="keywordflow">if</span> (pSendersData)</div>
<div class="line"><a name="l01999"></a><span class="lineno"> 1999</span>&#160;                    LocalData.mhs = *(LPMOUSEHOOKSTRUCT)pSendersData;</div>
<div class="line"><a name="l02000"></a><span class="lineno"> 2000</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02001"></a><span class="lineno"> 2001</span>&#160; </div>
<div class="line"><a name="l02002"></a><span class="lineno"> 2002</span>&#160;            <span class="keywordflow">case</span> WH_KEYBOARD:</div>
<div class="line"><a name="l02003"></a><span class="lineno"> 2003</span>&#160;            <span class="keywordflow">case</span> WH_SHELL:</div>
<div class="line"><a name="l02004"></a><span class="lineno"> 2004</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l02005"></a><span class="lineno"> 2005</span>&#160;<span class="comment">                 * Fall thru...</span></div>
<div class="line"><a name="l02006"></a><span class="lineno"> 2006</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l02007"></a><span class="lineno"> 2007</span>&#160;                pSendersData = NULL;</div>
<div class="line"><a name="l02008"></a><span class="lineno"> 2008</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02009"></a><span class="lineno"> 2009</span>&#160; </div>
<div class="line"><a name="l02010"></a><span class="lineno"> 2010</span>&#160;            <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l02011"></a><span class="lineno"> 2011</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l02012"></a><span class="lineno"> 2012</span>&#160;<span class="comment">                 * No pointers: wParam &amp; lParam can be sent as is.</span></div>
<div class="line"><a name="l02013"></a><span class="lineno"> 2013</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l02014"></a><span class="lineno"> 2014</span>&#160;                <a class="code" href="a00371.html#adbdd8355d15a97b6f3a9e4766e6a2cc1">RIPERR1</a>(ERROR_INVALID_PARAMETER, <a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;Receive hook %d&quot;</span>, iHook);</div>
<div class="line"><a name="l02015"></a><span class="lineno"> 2015</span>&#160;                pSendersData = NULL;</div>
<div class="line"><a name="l02016"></a><span class="lineno"> 2016</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02017"></a><span class="lineno"> 2017</span>&#160;            }</div>
<div class="line"><a name="l02018"></a><span class="lineno"> 2018</span>&#160; </div>
<div class="line"><a name="l02019"></a><span class="lineno"> 2019</span>&#160; </div>
<div class="line"><a name="l02020"></a><span class="lineno"> 2020</span>&#160;            lRet = <a class="code" href="a00701.html#aadb4af8217baa0735eae3b6b14a1cdb1">xxxCallHook2</a>(phkmp-&gt;<a class="code" href="a02957.html#a3f2e77d2d2e1bf5f78badcb79a56ea9e">phk</a>, phkmp-&gt;<a class="code" href="a02957.html#afa8756db27fa6b54be8584b5e458df6e">nCode</a>, psms-&gt;<a class="code" href="a02945.html#a7630a07d46e4a34e408cfb326d9d0648">wParam</a>,</div>
<div class="line"><a name="l02021"></a><span class="lineno"> 2021</span>&#160;                    pSendersData ? (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)&amp;LocalData : phkmp-&gt;<a class="code" href="a02957.html#a5e6806726c901bac1a235d0caf8deb96">lParam</a>, &amp;bAnsiHook);</div>
<div class="line"><a name="l02022"></a><span class="lineno"> 2022</span>&#160; </div>
<div class="line"><a name="l02023"></a><span class="lineno"> 2023</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02024"></a><span class="lineno"> 2024</span>&#160;<span class="comment">             * Copy back data only if the sender hasn&#39;t died or timed out</span></div>
<div class="line"><a name="l02025"></a><span class="lineno"> 2025</span>&#160;<span class="comment">             * (timed out messages are marked SMF_REPLY by the sending thread)</span></div>
<div class="line"><a name="l02026"></a><span class="lineno"> 2026</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02027"></a><span class="lineno"> 2027</span>&#160;            <span class="keywordflow">if</span> (!(psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; (SMF_SENDERDIED|SMF_REPLY)) &amp;&amp; pSendersData) {</div>
<div class="line"><a name="l02028"></a><span class="lineno"> 2028</span>&#160;                <span class="keywordflow">switch</span> (iHook) {</div>
<div class="line"><a name="l02029"></a><span class="lineno"> 2029</span>&#160;                <span class="keywordflow">case</span> WH_JOURNALRECORD:</div>
<div class="line"><a name="l02030"></a><span class="lineno"> 2030</span>&#160;                <span class="keywordflow">case</span> WH_JOURNALPLAYBACK:</div>
<div class="line"><a name="l02031"></a><span class="lineno"> 2031</span>&#160;                    *(PEVENTMSG)pSendersData = LocalData.emsg;</div>
<div class="line"><a name="l02032"></a><span class="lineno"> 2032</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02033"></a><span class="lineno"> 2033</span>&#160; </div>
<div class="line"><a name="l02034"></a><span class="lineno"> 2034</span>&#160;                <span class="keywordflow">case</span> WH_MOUSE:</div>
<div class="line"><a name="l02035"></a><span class="lineno"> 2035</span>&#160;                    *(LPMOUSEHOOKSTRUCT)pSendersData = LocalData.mhs;</div>
<div class="line"><a name="l02036"></a><span class="lineno"> 2036</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02037"></a><span class="lineno"> 2037</span>&#160;                }</div>
<div class="line"><a name="l02038"></a><span class="lineno"> 2038</span>&#160;            }</div>
<div class="line"><a name="l02039"></a><span class="lineno"> 2039</span>&#160; </div>
<div class="line"><a name="l02040"></a><span class="lineno"> 2040</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02041"></a><span class="lineno"> 2041</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02042"></a><span class="lineno"> 2042</span>&#160;<span class="comment">             * Call WH_CALLWNDPROC if it&#39;s installed and the window is not marked</span></div>
<div class="line"><a name="l02043"></a><span class="lineno"> 2043</span>&#160;<span class="comment">             * as destroyed.</span></div>
<div class="line"><a name="l02044"></a><span class="lineno"> 2044</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02045"></a><span class="lineno"> 2045</span>&#160;            <span class="keywordflow">if</span> (IsHooked(ptiReceiver, WHF_CALLWNDPROC)) {</div>
<div class="line"><a name="l02046"></a><span class="lineno"> 2046</span>&#160;                <a class="code" href="a02937.html">CWPSTRUCTEX</a> cwps;</div>
<div class="line"><a name="l02047"></a><span class="lineno"> 2047</span>&#160; </div>
<div class="line"><a name="l02048"></a><span class="lineno"> 2048</span>&#160;                cwps.hwnd = HW(psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>);</div>
<div class="line"><a name="l02049"></a><span class="lineno"> 2049</span>&#160;                cwps.message = psms-&gt;<a class="code" href="a02945.html#a2878d2b3ecc6a3d2477bc260ee848675">message</a>;</div>
<div class="line"><a name="l02050"></a><span class="lineno"> 2050</span>&#160;                cwps.wParam = psms-&gt;<a class="code" href="a02945.html#a7630a07d46e4a34e408cfb326d9d0648">wParam</a>;</div>
<div class="line"><a name="l02051"></a><span class="lineno"> 2051</span>&#160;                cwps.lParam = psms-&gt;<a class="code" href="a02945.html#a5e6806726c901bac1a235d0caf8deb96">lParam</a>;</div>
<div class="line"><a name="l02052"></a><span class="lineno"> 2052</span>&#160;                cwps.<a class="code" href="a02937.html#a2a4daf3bf234ddf89523fc62f9e0904a">psmsSender</a> = psms;</div>
<div class="line"><a name="l02053"></a><span class="lineno"> 2053</span>&#160; </div>
<div class="line"><a name="l02054"></a><span class="lineno"> 2054</span>&#160;                <a class="code" href="a00701.html#a4a596c02b66f7f049c18711b882e0b89">xxxCallHook</a>(HC_ACTION, TRUE, (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)&amp;cwps, WH_CALLWNDPROC);</div>
<div class="line"><a name="l02055"></a><span class="lineno"> 2055</span>&#160; </div>
<div class="line"><a name="l02056"></a><span class="lineno"> 2056</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l02057"></a><span class="lineno"> 2057</span>&#160;<span class="comment">                 * Unlike Win3.1, NT and Win95 ignore any changes the app makes</span></div>
<div class="line"><a name="l02058"></a><span class="lineno"> 2058</span>&#160;<span class="comment">                 * to the CWPSTRUCT contents.  If this behavior reverts to</span></div>
<div class="line"><a name="l02059"></a><span class="lineno"> 2059</span>&#160;<span class="comment">                 * Win3.1 semantics, we will need to copy the new parameters</span></div>
<div class="line"><a name="l02060"></a><span class="lineno"> 2060</span>&#160;<span class="comment">                 * from cwps.</span></div>
<div class="line"><a name="l02061"></a><span class="lineno"> 2061</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l02062"></a><span class="lineno"> 2062</span>&#160;            }</div>
<div class="line"><a name="l02063"></a><span class="lineno"> 2063</span>&#160; </div>
<div class="line"><a name="l02064"></a><span class="lineno"> 2064</span>&#160;            <span class="keywordflow">if</span> (!(psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; (SMF_REPLY | SMF_SENDERDIED | SMF_RECEIVERDIED)) &amp;&amp;</div>
<div class="line"><a name="l02065"></a><span class="lineno"> 2065</span>&#160;                    psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a> != NULL) {</div>
<div class="line"><a name="l02066"></a><span class="lineno"> 2066</span>&#160;                <span class="keywordflow">if</span> (TestWF(psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, WFSERVERSIDEPROC)) {</div>
<div class="line"><a name="l02067"></a><span class="lineno"> 2067</span>&#160;                    <a class="code" href="a01881.html">TL</a> tlpwndKernel;</div>
<div class="line"><a name="l02068"></a><span class="lineno"> 2068</span>&#160; </div>
<div class="line"><a name="l02069"></a><span class="lineno"> 2069</span>&#160;                    <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, &amp;tlpwndKernel);</div>
<div class="line"><a name="l02070"></a><span class="lineno"> 2070</span>&#160;                    <span class="comment">/*</span></div>
<div class="line"><a name="l02071"></a><span class="lineno"> 2071</span>&#160;<span class="comment">                     * If this window&#39;s proc is meant to be executed from the server side</span></div>
<div class="line"><a name="l02072"></a><span class="lineno"> 2072</span>&#160;<span class="comment">                     * we&#39;ll just stay inside the semaphore and call it directly.  Note</span></div>
<div class="line"><a name="l02073"></a><span class="lineno"> 2073</span>&#160;<span class="comment">                     * how we don&#39;t convert the pwnd into an hwnd before calling the proc.</span></div>
<div class="line"><a name="l02074"></a><span class="lineno"> 2074</span>&#160;<span class="comment">                     */</span></div>
<div class="line"><a name="l02075"></a><span class="lineno"> 2075</span>&#160;                    lRet = psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>-&gt;<a class="code" href="a02581.html#ae7a5a1d213bfe6dce2e6eab68a2a8bb8">lpfnWndProc</a>(psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, psms-&gt;<a class="code" href="a02945.html#a2878d2b3ecc6a3d2477bc260ee848675">message</a>,</div>
<div class="line"><a name="l02076"></a><span class="lineno"> 2076</span>&#160;                            psms-&gt;<a class="code" href="a02945.html#a7630a07d46e4a34e408cfb326d9d0648">wParam</a>, psms-&gt;<a class="code" href="a02945.html#a5e6806726c901bac1a235d0caf8deb96">lParam</a>);</div>
<div class="line"><a name="l02077"></a><span class="lineno"> 2077</span>&#160; </div>
<div class="line"><a name="l02078"></a><span class="lineno"> 2078</span>&#160;                    ThreadUnlock(&amp;tlpwndKernel);</div>
<div class="line"><a name="l02079"></a><span class="lineno"> 2079</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02080"></a><span class="lineno"> 2080</span>&#160;                    <a class="code" href="a02581.html">PWND</a> pwnd;</div>
<div class="line"><a name="l02081"></a><span class="lineno"> 2081</span>&#160;                    <a class="code" href="a02569.html">PCLS</a> pcls;</div>
<div class="line"><a name="l02082"></a><span class="lineno"> 2082</span>&#160;                    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> message;</div>
<div class="line"><a name="l02083"></a><span class="lineno"> 2083</span>&#160;                    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwSCMSFlags;</div>
<div class="line"><a name="l02084"></a><span class="lineno"> 2084</span>&#160; </div>
<div class="line"><a name="l02085"></a><span class="lineno"> 2085</span>&#160;                    <span class="comment">/*</span></div>
<div class="line"><a name="l02086"></a><span class="lineno"> 2086</span>&#160;<span class="comment">                     * If the window has a client side worker proc and has</span></div>
<div class="line"><a name="l02087"></a><span class="lineno"> 2087</span>&#160;<span class="comment">                     * not been subclassed, dispatch the message directly</span></div>
<div class="line"><a name="l02088"></a><span class="lineno"> 2088</span>&#160;<span class="comment">                     * to the worker proc.  Otherwise, dispatch it normally.</span></div>
<div class="line"><a name="l02089"></a><span class="lineno"> 2089</span>&#160;<span class="comment">                     */</span></div>
<div class="line"><a name="l02090"></a><span class="lineno"> 2090</span>&#160;                    pwnd = psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>;</div>
<div class="line"><a name="l02091"></a><span class="lineno"> 2091</span>&#160;                    pcls = pwnd-&gt;<a class="code" href="a02581.html#a9ac6b15978318e3401ef9a878ccb40ac">pcls</a>;</div>
<div class="line"><a name="l02092"></a><span class="lineno"> 2092</span>&#160;                    message = psms-&gt;<a class="code" href="a02945.html#a2878d2b3ecc6a3d2477bc260ee848675">message</a>;</div>
<div class="line"><a name="l02093"></a><span class="lineno"> 2093</span>&#160;                    dwSCMSFlags = TestWF(pwnd, WFANSIPROC) ? SCMS_FLAGS_ANSI : 0;</div>
<div class="line"><a name="l02094"></a><span class="lineno"> 2094</span>&#160;                    <span class="keywordflow">if</span> (pcls-&gt;<a class="code" href="a02569.html#abf7087f027fa856753b00194fa491d18">lpfnWorker</a> &amp;&amp;</div>
<div class="line"><a name="l02095"></a><span class="lineno"> 2095</span>&#160;                            ((<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)pwnd-&gt;<a class="code" href="a02581.html#ae7a5a1d213bfe6dce2e6eab68a2a8bb8">lpfnWndProc</a> == FNID_TO_CLIENT_PFNW(pcls-&gt;<a class="code" href="a02569.html#aa186be7fc47d6ee190a1fd364459a743">fnid</a>) ||</div>
<div class="line"><a name="l02096"></a><span class="lineno"> 2096</span>&#160;                             (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)pwnd-&gt;<a class="code" href="a02581.html#ae7a5a1d213bfe6dce2e6eab68a2a8bb8">lpfnWndProc</a> == FNID_TO_CLIENT_PFNA(pcls-&gt;<a class="code" href="a02569.html#aa186be7fc47d6ee190a1fd364459a743">fnid</a>))) {</div>
<div class="line"><a name="l02097"></a><span class="lineno"> 2097</span>&#160;                        <a class="code" href="a02517.html">PWNDMSG</a> pwm = &amp;<a class="code" href="a00020.html#ac02f0141c423acd033ecdd2a757a3cc1">gSharedInfo</a>.<a class="code" href="a02521.html#a7e26cfe7a314d23f30409cf4dcb86b82">awmControl</a>[pcls-&gt;<a class="code" href="a02569.html#aa186be7fc47d6ee190a1fd364459a743">fnid</a> - FNID_START];</div>
<div class="line"><a name="l02098"></a><span class="lineno"> 2098</span>&#160; </div>
<div class="line"><a name="l02099"></a><span class="lineno"> 2099</span>&#160;                        <span class="comment">/*</span></div>
<div class="line"><a name="l02100"></a><span class="lineno"> 2100</span>&#160;<span class="comment">                         * If this message is not processed by the control, call</span></div>
<div class="line"><a name="l02101"></a><span class="lineno"> 2101</span>&#160;<span class="comment">                         * xxxDefWindowProc</span></div>
<div class="line"><a name="l02102"></a><span class="lineno"> 2102</span>&#160;<span class="comment">                         */</span></div>
<div class="line"><a name="l02103"></a><span class="lineno"> 2103</span>&#160;                        <span class="keywordflow">if</span> (pwm-&gt;<a class="code" href="a02517.html#a2d6495c3cf7fb3fbdd27638ad3de548e">abMsgs</a> &amp;&amp; ((message &gt; pwm-&gt;<a class="code" href="a02517.html#a42d641821b5c3c8a4f9dd0328dabfc8a">maxMsgs</a>) ||</div>
<div class="line"><a name="l02104"></a><span class="lineno"> 2104</span>&#160;                                !((pwm-&gt;<a class="code" href="a02517.html#a2d6495c3cf7fb3fbdd27638ad3de548e">abMsgs</a>)[message / 8] &amp; (1 &lt;&lt; (message &amp; 7))))) {</div>
<div class="line"><a name="l02105"></a><span class="lineno"> 2105</span>&#160; </div>
<div class="line"><a name="l02106"></a><span class="lineno"> 2106</span>&#160;                            <span class="comment">/*</span></div>
<div class="line"><a name="l02107"></a><span class="lineno"> 2107</span>&#160;<span class="comment">                             * Special case dialogs so that we can ignore unimportant</span></div>
<div class="line"><a name="l02108"></a><span class="lineno"> 2108</span>&#160;<span class="comment">                             * messages during dialog creation.</span></div>
<div class="line"><a name="l02109"></a><span class="lineno"> 2109</span>&#160;<span class="comment">                             */</span></div>
<div class="line"><a name="l02110"></a><span class="lineno"> 2110</span>&#160;                            <span class="keywordflow">if</span> (pcls-&gt;<a class="code" href="a02569.html#aa186be7fc47d6ee190a1fd364459a743">fnid</a> == FNID_DIALOG &amp;&amp;</div>
<div class="line"><a name="l02111"></a><span class="lineno"> 2111</span>&#160;                                    <a class="code" href="a02641.html">PDLG</a>(pwnd) &amp;&amp;</div>
<div class="line"><a name="l02112"></a><span class="lineno"> 2112</span>&#160;                                    <a class="code" href="a00365.html#aaad45088258144a066fcea47a43bb325">PDLG</a>(pwnd)-&gt;lpfnDlg != NULL)</div>
<div class="line"><a name="l02113"></a><span class="lineno"> 2113</span>&#160;                                lRet = ScSendMessageSMS(pwnd, message, psms-&gt;<a class="code" href="a02945.html#a7630a07d46e4a34e408cfb326d9d0648">wParam</a>, psms-&gt;<a class="code" href="a02945.html#a5e6806726c901bac1a235d0caf8deb96">lParam</a>,</div>
<div class="line"><a name="l02114"></a><span class="lineno"> 2114</span>&#160;                                        dwSCMSFlags, pcls-&gt;<a class="code" href="a02569.html#abf7087f027fa856753b00194fa491d18">lpfnWorker</a>, dwSCMSFlags, psms);</div>
<div class="line"><a name="l02115"></a><span class="lineno"> 2115</span>&#160;                            <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02116"></a><span class="lineno"> 2116</span>&#160;                                <a class="code" href="a01881.html">TL</a> tlpwndDWP;</div>
<div class="line"><a name="l02117"></a><span class="lineno"> 2117</span>&#160; </div>
<div class="line"><a name="l02118"></a><span class="lineno"> 2118</span>&#160;                                <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(pwnd, &amp;tlpwndDWP);</div>
<div class="line"><a name="l02119"></a><span class="lineno"> 2119</span>&#160;                                lRet = <a class="code" href="a00671.html#af0a7cefc146c51b12208e692b0f67960">xxxDefWindowProc</a>(pwnd, message, psms-&gt;<a class="code" href="a02945.html#a7630a07d46e4a34e408cfb326d9d0648">wParam</a>, psms-&gt;<a class="code" href="a02945.html#a5e6806726c901bac1a235d0caf8deb96">lParam</a>);</div>
<div class="line"><a name="l02120"></a><span class="lineno"> 2120</span>&#160;                                ThreadUnlock(&amp;tlpwndDWP);</div>
<div class="line"><a name="l02121"></a><span class="lineno"> 2121</span>&#160;                            }</div>
<div class="line"><a name="l02122"></a><span class="lineno"> 2122</span>&#160;                        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02123"></a><span class="lineno"> 2123</span>&#160;                            lRet = ScSendMessageSMS(pwnd, message, psms-&gt;<a class="code" href="a02945.html#a7630a07d46e4a34e408cfb326d9d0648">wParam</a>, psms-&gt;<a class="code" href="a02945.html#a5e6806726c901bac1a235d0caf8deb96">lParam</a>,</div>
<div class="line"><a name="l02124"></a><span class="lineno"> 2124</span>&#160;                                    dwSCMSFlags, pcls-&gt;<a class="code" href="a02569.html#abf7087f027fa856753b00194fa491d18">lpfnWorker</a>, dwSCMSFlags, psms);</div>
<div class="line"><a name="l02125"></a><span class="lineno"> 2125</span>&#160;                        }</div>
<div class="line"><a name="l02126"></a><span class="lineno"> 2126</span>&#160;                    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02127"></a><span class="lineno"> 2127</span>&#160;                        lRet = ScSendMessageSMS(pwnd, message, psms-&gt;<a class="code" href="a02945.html#a7630a07d46e4a34e408cfb326d9d0648">wParam</a>, psms-&gt;<a class="code" href="a02945.html#a5e6806726c901bac1a235d0caf8deb96">lParam</a>,</div>
<div class="line"><a name="l02128"></a><span class="lineno"> 2128</span>&#160;                                (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)pwnd-&gt;<a class="code" href="a02581.html#ae7a5a1d213bfe6dce2e6eab68a2a8bb8">lpfnWndProc</a>,</div>
<div class="line"><a name="l02129"></a><span class="lineno"> 2129</span>&#160;                                <a class="code" href="a00020.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="code" href="a02513.html#a6f4de7f11f44318feef70149fa2d31cc">apfnClientW</a>.<a class="code" href="a02501.html#aa8d047fb3797fd6b520383ee297357bf">pfnDispatchMessage</a>,</div>
<div class="line"><a name="l02130"></a><span class="lineno"> 2130</span>&#160;                                dwSCMSFlags, psms);</div>
<div class="line"><a name="l02131"></a><span class="lineno"> 2131</span>&#160;                    }</div>
<div class="line"><a name="l02132"></a><span class="lineno"> 2132</span>&#160;                }</div>
<div class="line"><a name="l02133"></a><span class="lineno"> 2133</span>&#160; </div>
<div class="line"><a name="l02134"></a><span class="lineno"> 2134</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l02135"></a><span class="lineno"> 2135</span>&#160;<span class="comment">                 * Call WH_CALLWNDPROCRET if it&#39;s installed.</span></div>
<div class="line"><a name="l02136"></a><span class="lineno"> 2136</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l02137"></a><span class="lineno"> 2137</span>&#160;                <span class="keywordflow">if</span> (IsHooked(ptiReceiver, WHF_CALLWNDPROCRET) &amp;&amp;</div>
<div class="line"><a name="l02138"></a><span class="lineno"> 2138</span>&#160;                        !(psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_SENDERDIED)) {</div>
<div class="line"><a name="l02139"></a><span class="lineno"> 2139</span>&#160;                    <a class="code" href="a02941.html">CWPRETSTRUCTEX</a> cwps;</div>
<div class="line"><a name="l02140"></a><span class="lineno"> 2140</span>&#160; </div>
<div class="line"><a name="l02141"></a><span class="lineno"> 2141</span>&#160;                    cwps.hwnd = HW(psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>);</div>
<div class="line"><a name="l02142"></a><span class="lineno"> 2142</span>&#160;                    cwps.message = psms-&gt;<a class="code" href="a02945.html#a2878d2b3ecc6a3d2477bc260ee848675">message</a>;</div>
<div class="line"><a name="l02143"></a><span class="lineno"> 2143</span>&#160;                    cwps.wParam = psms-&gt;<a class="code" href="a02945.html#a7630a07d46e4a34e408cfb326d9d0648">wParam</a>;</div>
<div class="line"><a name="l02144"></a><span class="lineno"> 2144</span>&#160;                    cwps.lParam = psms-&gt;<a class="code" href="a02945.html#a5e6806726c901bac1a235d0caf8deb96">lParam</a>;</div>
<div class="line"><a name="l02145"></a><span class="lineno"> 2145</span>&#160;                    cwps.<a class="code" href="a02941.html#a33e2687b8b26e3e485b2584c10e324bd">lResult</a> = lRet;</div>
<div class="line"><a name="l02146"></a><span class="lineno"> 2146</span>&#160;                    cwps.<a class="code" href="a02941.html#a2a4daf3bf234ddf89523fc62f9e0904a">psmsSender</a> = psms;</div>
<div class="line"><a name="l02147"></a><span class="lineno"> 2147</span>&#160; </div>
<div class="line"><a name="l02148"></a><span class="lineno"> 2148</span>&#160;                    <span class="comment">/*</span></div>
<div class="line"><a name="l02149"></a><span class="lineno"> 2149</span>&#160;<span class="comment">                     * Unlike Win3.1, NT and Win95 ignore any changes the app makes</span></div>
<div class="line"><a name="l02150"></a><span class="lineno"> 2150</span>&#160;<span class="comment">                     * to the CWPSTRUCT contents.</span></div>
<div class="line"><a name="l02151"></a><span class="lineno"> 2151</span>&#160;<span class="comment">                     */</span></div>
<div class="line"><a name="l02152"></a><span class="lineno"> 2152</span>&#160;                    <a class="code" href="a00701.html#a4a596c02b66f7f049c18711b882e0b89">xxxCallHook</a>(HC_ACTION, TRUE, (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)&amp;cwps, WH_CALLWNDPROCRET);</div>
<div class="line"><a name="l02153"></a><span class="lineno"> 2153</span>&#160; </div>
<div class="line"><a name="l02154"></a><span class="lineno"> 2154</span>&#160;                    <span class="comment">/*</span></div>
<div class="line"><a name="l02155"></a><span class="lineno"> 2155</span>&#160;<span class="comment">                     * Unlike Win3.1, NT and Win95 ignore any changes the app makes</span></div>
<div class="line"><a name="l02156"></a><span class="lineno"> 2156</span>&#160;<span class="comment">                     * to the CWPSTRUCT contents.  If this behavior reverts to</span></div>
<div class="line"><a name="l02157"></a><span class="lineno"> 2157</span>&#160;<span class="comment">                     * Win3.1 semantics, we will need to copy the new parameters</span></div>
<div class="line"><a name="l02158"></a><span class="lineno"> 2158</span>&#160;<span class="comment">                     * from cwps.</span></div>
<div class="line"><a name="l02159"></a><span class="lineno"> 2159</span>&#160;<span class="comment">                     */</span></div>
<div class="line"><a name="l02160"></a><span class="lineno"> 2160</span>&#160;                }</div>
<div class="line"><a name="l02161"></a><span class="lineno"> 2161</span>&#160;            }</div>
<div class="line"><a name="l02162"></a><span class="lineno"> 2162</span>&#160;        }</div>
<div class="line"><a name="l02163"></a><span class="lineno"> 2163</span>&#160; </div>
<div class="line"><a name="l02164"></a><span class="lineno"> 2164</span>&#160;        <span class="keywordflow">if</span> ((psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; (SMF_CB_REQUEST | SMF_REPLY)) == SMF_CB_REQUEST) {</div>
<div class="line"><a name="l02165"></a><span class="lineno"> 2165</span>&#160; </div>
<div class="line"><a name="l02166"></a><span class="lineno"> 2166</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02167"></a><span class="lineno"> 2167</span>&#160;<span class="comment">             * From SendMessageCallback REQUEST callback.  Send the message</span></div>
<div class="line"><a name="l02168"></a><span class="lineno"> 2168</span>&#160;<span class="comment">             * back with a the REPLY value.</span></div>
<div class="line"><a name="l02169"></a><span class="lineno"> 2169</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02170"></a><span class="lineno"> 2170</span>&#160;            <a class="code" href="a02949.html">INTRSENDMSGEX</a> ism;</div>
<div class="line"><a name="l02171"></a><span class="lineno"> 2171</span>&#160; </div>
<div class="line"><a name="l02172"></a><span class="lineno"> 2172</span>&#160;            psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= SMF_REPLY;</div>
<div class="line"><a name="l02173"></a><span class="lineno"> 2173</span>&#160; </div>
<div class="line"><a name="l02174"></a><span class="lineno"> 2174</span>&#160;            <span class="keywordflow">if</span> (!(psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_SENDERDIED)) {</div>
<div class="line"><a name="l02175"></a><span class="lineno"> 2175</span>&#160;                ism.<a class="code" href="a02949.html#a547498bf050b0628b65f83ba9237ce84">fuCall</a> = ISM_CALLBACK | ISM_REPLY;</div>
<div class="line"><a name="l02176"></a><span class="lineno"> 2176</span>&#160;                <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_CB_CLIENT)</div>
<div class="line"><a name="l02177"></a><span class="lineno"> 2177</span>&#160;                    ism.<a class="code" href="a02949.html#a547498bf050b0628b65f83ba9237ce84">fuCall</a> |= ISM_CB_CLIENT;</div>
<div class="line"><a name="l02178"></a><span class="lineno"> 2178</span>&#160;                ism.<a class="code" href="a02949.html#a7ee9bbcad17fb211571e22478070487e">lpResultCallBack</a> = psms-&gt;<a class="code" href="a02945.html#a7ee9bbcad17fb211571e22478070487e">lpResultCallBack</a>;</div>
<div class="line"><a name="l02179"></a><span class="lineno"> 2179</span>&#160;                ism.<a class="code" href="a02949.html#ad38b92af7d164a277eb2d30b5e65a489">dwData</a> = psms-&gt;<a class="code" href="a02945.html#ad38b92af7d164a277eb2d30b5e65a489">dwData</a>;</div>
<div class="line"><a name="l02180"></a><span class="lineno"> 2180</span>&#160;                ism.<a class="code" href="a02949.html#a3d5a6d1389eee512ee74e85d7d37988b">lRet</a> = lRet;</div>
<div class="line"><a name="l02181"></a><span class="lineno"> 2181</span>&#160; </div>
<div class="line"><a name="l02182"></a><span class="lineno"> 2182</span>&#160;                <a class="code" href="a00842.html#a9e53f556a04607e23d1b746d5274b952">xxxInterSendMsgEx</a>(psms-&gt;<a class="code" href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, psms-&gt;<a class="code" href="a02945.html#a2878d2b3ecc6a3d2477bc260ee848675">message</a>, 0L, 0L,</div>
<div class="line"><a name="l02183"></a><span class="lineno"> 2183</span>&#160;                        NULL, psms-&gt;<a class="code" href="a02945.html#af1f37780572110e7cedfd3b27e4c6653">ptiCallBackSender</a>, &amp;ism );</div>
<div class="line"><a name="l02184"></a><span class="lineno"> 2184</span>&#160;            }</div>
<div class="line"><a name="l02185"></a><span class="lineno"> 2185</span>&#160;        }</div>
<div class="line"><a name="l02186"></a><span class="lineno"> 2186</span>&#160; </div>
<div class="line"><a name="l02187"></a><span class="lineno"> 2187</span>&#160;        <span class="keywordflow">if</span> (ptiSender == NULL) {</div>
<div class="line"><a name="l02188"></a><span class="lineno"> 2188</span>&#160;            ThreadUnlock(&amp;tlpwnd);</div>
<div class="line"><a name="l02189"></a><span class="lineno"> 2189</span>&#160;        }</div>
<div class="line"><a name="l02190"></a><span class="lineno"> 2190</span>&#160; </div>
<div class="line"><a name="l02191"></a><span class="lineno"> 2191</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02192"></a><span class="lineno"> 2192</span>&#160;<span class="comment">         * Restore receiver&#39;s original psmsCurrent.</span></div>
<div class="line"><a name="l02193"></a><span class="lineno"> 2193</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02194"></a><span class="lineno"> 2194</span>&#160;        ptiReceiver-&gt;<a class="code" href="a02889.html#a99fe3da4061cf81a351510d8e24abe5b">psmsCurrent</a> = psmsCurrentSave;</div>
<div class="line"><a name="l02195"></a><span class="lineno"> 2195</span>&#160; </div>
<div class="line"><a name="l02196"></a><span class="lineno"> 2196</span>&#160;<span class="preprocessor">#ifdef DEBUG_SMS</span></div>
<div class="line"><a name="l02197"></a><span class="lineno"> 2197</span>&#160;        ValidateSmsSendLists(psmsCurrentSave);</div>
<div class="line"><a name="l02198"></a><span class="lineno"> 2198</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l02199"></a><span class="lineno"> 2199</span>&#160;    }</div>
<div class="line"><a name="l02200"></a><span class="lineno"> 2200</span>&#160; </div>
<div class="line"><a name="l02201"></a><span class="lineno"> 2201</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02202"></a><span class="lineno"> 2202</span>&#160;<span class="comment">     * We&#39;re done with this sms, so the appropriate thread</span></div>
<div class="line"><a name="l02203"></a><span class="lineno"> 2203</span>&#160;<span class="comment">     * can now free it.</span></div>
<div class="line"><a name="l02204"></a><span class="lineno"> 2204</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02205"></a><span class="lineno"> 2205</span>&#160;    psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp;= ~SMF_RECEIVERBUSY;</div>
<div class="line"><a name="l02206"></a><span class="lineno"> 2206</span>&#160; </div>
<div class="line"><a name="l02207"></a><span class="lineno"> 2207</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02208"></a><span class="lineno"> 2208</span>&#160;<span class="comment">     * Free the sms and return without reply if the</span></div>
<div class="line"><a name="l02209"></a><span class="lineno"> 2209</span>&#160;<span class="comment">     * SMF_RECEIVERFREE bit is set.  Handily, this does just what we</span></div>
<div class="line"><a name="l02210"></a><span class="lineno"> 2210</span>&#160;<span class="comment">     * want for xxxSendNotifyMessage() since we set SMF_RECEIVERFREE</span></div>
<div class="line"><a name="l02211"></a><span class="lineno"> 2211</span>&#160;<span class="comment">     * in that case.</span></div>
<div class="line"><a name="l02212"></a><span class="lineno"> 2212</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02213"></a><span class="lineno"> 2213</span>&#160;    <span class="keywordflow">if</span> (psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_RECEIVERFREE) {</div>
<div class="line"><a name="l02214"></a><span class="lineno"> 2214</span>&#160;        <a class="code" href="a00842.html#aa38ed6c2085098ea4fb3fb3e84095bc3">UnlinkSendListSms</a>(psms, NULL);</div>
<div class="line"><a name="l02215"></a><span class="lineno"> 2215</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02216"></a><span class="lineno"> 2216</span>&#160;    }</div>
<div class="line"><a name="l02217"></a><span class="lineno"> 2217</span>&#160; </div>
<div class="line"><a name="l02218"></a><span class="lineno"> 2218</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02219"></a><span class="lineno"> 2219</span>&#160;<span class="comment">     * Set reply flag and return value if this message has not already</span></div>
<div class="line"><a name="l02220"></a><span class="lineno"> 2220</span>&#160;<span class="comment">     * been replied to with ReplyMessage().</span></div>
<div class="line"><a name="l02221"></a><span class="lineno"> 2221</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02222"></a><span class="lineno"> 2222</span>&#160;    <span class="keywordflow">if</span> (!(psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> &amp; SMF_REPLY)) {</div>
<div class="line"><a name="l02223"></a><span class="lineno"> 2223</span>&#160;        psms-&gt;<a class="code" href="a02945.html#a3d5a6d1389eee512ee74e85d7d37988b">lRet</a> = lRet;</div>
<div class="line"><a name="l02224"></a><span class="lineno"> 2224</span>&#160;        psms-&gt;<a class="code" href="a02945.html#ac8857c754110e179cc769f84373117ca">flags</a> |= SMF_REPLY;</div>
<div class="line"><a name="l02225"></a><span class="lineno"> 2225</span>&#160; </div>
<div class="line"><a name="l02226"></a><span class="lineno"> 2226</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02227"></a><span class="lineno"> 2227</span>&#160;<span class="comment">         * Tell the sender, the reply is done</span></div>
<div class="line"><a name="l02228"></a><span class="lineno"> 2228</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02229"></a><span class="lineno"> 2229</span>&#160;        <span class="keywordflow">if</span> (ptiSender != NULL) {</div>
<div class="line"><a name="l02230"></a><span class="lineno"> 2230</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02231"></a><span class="lineno"> 2231</span>&#160;<span class="comment">             * Wake up the sender thread.</span></div>
<div class="line"><a name="l02232"></a><span class="lineno"> 2232</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02233"></a><span class="lineno"> 2233</span>&#160;            <a class="code" href="a00824.html#a7a7fb081b27165c43974d89be67bbad8">SetWakeBit</a>(ptiSender, QS_SMSREPLY);</div>
<div class="line"><a name="l02234"></a><span class="lineno"> 2234</span>&#160; </div>
<div class="line"><a name="l02235"></a><span class="lineno"> 2235</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02236"></a><span class="lineno"> 2236</span>&#160;<span class="comment">             * We have 4 conditions to satisfy:</span></div>
<div class="line"><a name="l02237"></a><span class="lineno"> 2237</span>&#160;<span class="comment">             *</span></div>
<div class="line"><a name="l02238"></a><span class="lineno"> 2238</span>&#160;<span class="comment">             * 16 - 16 : yielding required, if sender is waiting for this reply</span></div>
<div class="line"><a name="l02239"></a><span class="lineno"> 2239</span>&#160;<span class="comment">             * 32 - 16 : yielding required, if sender is waiting for this reply</span></div>
<div class="line"><a name="l02240"></a><span class="lineno"> 2240</span>&#160;<span class="comment">             * 16 - 32 : no yielding required</span></div>
<div class="line"><a name="l02241"></a><span class="lineno"> 2241</span>&#160;<span class="comment">             * 32 - 32 : No yielding required.</span></div>
<div class="line"><a name="l02242"></a><span class="lineno"> 2242</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02243"></a><span class="lineno"> 2243</span>&#160; </div>
<div class="line"><a name="l02244"></a><span class="lineno"> 2244</span>&#160;            <span class="keywordflow">if</span> (ptiSender-&gt;<a class="code" href="a02889.html#ae8b869ec5b101646649020f5b0fd5d0d">TIF_flags</a> &amp; TIF_16BIT || ptiReceiver-&gt;<a class="code" href="a02889.html#ae8b869ec5b101646649020f5b0fd5d0d">TIF_flags</a> &amp; TIF_16BIT) {</div>
<div class="line"><a name="l02245"></a><span class="lineno"> 2245</span>&#160;                <a class="code" href="a00881.html#a282d32ed2a8d185b9af16311b5e464b9">DirectedScheduleTask</a>(ptiReceiver, ptiSender, FALSE, psms);</div>
<div class="line"><a name="l02246"></a><span class="lineno"> 2246</span>&#160;                <span class="keywordflow">if</span> (ptiReceiver-&gt;<a class="code" href="a02889.html#ae8b869ec5b101646649020f5b0fd5d0d">TIF_flags</a> &amp; TIF_16BIT &amp;&amp;</div>
<div class="line"><a name="l02247"></a><span class="lineno"> 2247</span>&#160;                    ptiSender-&gt;<a class="code" href="a02889.html#a9e9fc9ec28f5b2ebac921b669df50531">psmsSent</a> == psms)</div>
<div class="line"><a name="l02248"></a><span class="lineno"> 2248</span>&#160;                  {</div>
<div class="line"><a name="l02249"></a><span class="lineno"> 2249</span>&#160;                    <a class="code" href="a00881.html#ae11878514dabd4ba1a2c58dd2bcf2d4d">xxxSleepTask</a>(TRUE, NULL);</div>
<div class="line"><a name="l02250"></a><span class="lineno"> 2250</span>&#160;                }</div>
<div class="line"><a name="l02251"></a><span class="lineno"> 2251</span>&#160;            }</div>
<div class="line"><a name="l02252"></a><span class="lineno"> 2252</span>&#160;        }</div>
<div class="line"><a name="l02253"></a><span class="lineno"> 2253</span>&#160;    }</div>
<div class="line"><a name="l02254"></a><span class="lineno"> 2254</span>&#160; </div>
<div class="line"><a name="l02255"></a><span class="lineno"> 2255</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00365_source.html#l01055">_WNDMSG::abMsgs</a>, <a class="el" href="a00365_source.html#l00966">tagSERVERINFO::apfnClientW</a>, <a class="el" href="a00365_source.html#l01068">tagSHAREDINFO::awmControl</a>, <a class="el" href="a00881_source.html#l00575">DirectedScheduleTask()</a>, <a class="el" href="a00899_source.html#l02605">tagSMS::dwData</a>, <a class="el" href="a00899_source.html#l02643">tagINTERSENDMSGEX::dwData</a>, <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00899_source.html#l02609">tagSMS::flags</a>, <a class="el" href="a00365_source.html#l01327">tagCLS::fnid</a>, <a class="el" href="a00365_source.html#l02217">tagCLIENTTHREADINFO::fsChangeBits</a>, <a class="el" href="a00365_source.html#l02218">tagCLIENTTHREADINFO::fsWakeBits</a>, <a class="el" href="a00899_source.html#l02640">tagINTERSENDMSGEX::fuCall</a>, <a class="el" href="a00020_source.html#l00039">gpsi</a>, <a class="el" href="a00020_source.html#l00040">gSharedInfo</a>, <a class="el" href="a00365_source.html#l01474">tagHOOK::iHook</a>, <a class="el" href="a00899_source.html#l02611">tagSMS::lParam</a>, <a class="el" href="a00899_source.html#l02676">tagHOOKMSGSTRUCT::lParam</a>, <a class="el" href="a00365_source.html#l01401">tagWND::lpfnWndProc</a>, <a class="el" href="a00365_source.html#l01349">tagCLS::lpfnWorker</a>, <a class="el" href="a00899_source.html#l02604">tagSMS::lpResultCallBack</a>, <a class="el" href="a00899_source.html#l02642">tagINTERSENDMSGEX::lpResultCallBack</a>, <a class="el" href="a00899_source.html#l02585">_CWPRETSTRUCTEX::lResult</a>, <a class="el" href="a00899_source.html#l02608">tagSMS::lRet</a>, <a class="el" href="a00899_source.html#l02644">tagINTERSENDMSGEX::lRet</a>, <a class="el" href="a00365_source.html#l01054">_WNDMSG::maxMsgs</a>, <a class="el" href="a00899_source.html#l02612">tagSMS::message</a>, <a class="el" href="a00899_source.html#l02675">tagHOOKMSGSTRUCT::nCode</a>, <a class="el" href="a00365_source.html#l01403">tagWND::pcls</a>, <a class="el" href="a00899_source.html#l02280">tagTHREADINFO::pcti</a>, <a class="el" href="a00365_source.html#l00752">_PFNCLIENT::pfnDispatchMessage</a>, <a class="el" href="a00899_source.html#l02674">tagHOOKMSGSTRUCT::phk</a>, <a class="el" href="a00899_source.html#l02299">tagTHREADINFO::psmsCurrent</a>, <a class="el" href="a00899_source.html#l02300">tagTHREADINFO::psmsReceiveList</a>, <a class="el" href="a00899_source.html#l02599">tagSMS::psmsReceiveNext</a>, <a class="el" href="a00899_source.html#l02581">_CWPSTRUCTEX::psmsSender</a>, <a class="el" href="a00899_source.html#l02587">_CWPRETSTRUCTEX::psmsSender</a>, <a class="el" href="a00899_source.html#l02298">tagTHREADINFO::psmsSent</a>, <a class="el" href="a00899_source.html#l02606">tagSMS::ptiCallBackSender</a>, <a class="el" href="a00899_source.html#l02601">tagSMS::ptiSender</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00120">RIPERR1</a>, <a class="el" href="a00824_source.html#l03276">SetWakeBit()</a>, <a class="el" href="a00899_source.html#l02613">tagSMS::spwnd</a>, <a class="el" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock()</a>, <a class="el" href="a00899_source.html#l02294">tagTHREADINFO::TIF_flags</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>, <a class="el" href="a00842_source.html#l02689">UnlinkSendListSms()</a>, <a class="el" href="a00899_source.html#l02610">tagSMS::wParam</a>, <a class="el" href="a00701_source.html#l00954">xxxCallHook()</a>, <a class="el" href="a00701_source.html#l00996">xxxCallHook2()</a>, <a class="el" href="a00671_source.html#l01146">xxxDefWindowProc()</a>, <a class="el" href="a00842_source.html#l01235">xxxInterSendMsgEx()</a> , 以及 <a class="el" href="a00881_source.html#l00234">xxxSleepTask()</a>.</p>

</div>
</div>
<a id="a09e587e3bc8d6cf205bca5689f7a66cc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a09e587e3bc8d6cf205bca5689f7a66cc">&#9670;&nbsp;</a></span>xxxSendBSMtoDesktop()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL xxxSendBSMtoDesktop </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwndDesk</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>wParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>lParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwFlags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwRecipients</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l00320">320</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;{</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;    <a class="code" href="a02913.html">PBWL</a> pbwl;</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;    HWND *phwnd;</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;    <a class="code" href="a02581.html">PWND</a> pwnd;</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpwnd;</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;    BOOL fReturnValue = TRUE;</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;    <a class="code" href="a02889.html">PTHREADINFO</a> pti = <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>();</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160; </div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;    pbwl = <a class="code" href="a00017.html#a38f9f1cda93f580ed3ac238d15bd06f7">BuildHwndList</a>(pwndDesk-&gt;<a class="code" href="a02581.html#a6171c9000ea2060597a9bcf498ee0316">spwndChild</a>, BWL_ENUMLIST, NULL);</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160; </div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;    <span class="keywordflow">if</span> (pbwl == NULL)</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160; </div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    <span class="keywordflow">for</span> (phwnd = pbwl-&gt;<a class="code" href="a02913.html#abebc9955f9d1fbc422612b6eab345d2e">rghwnd</a>; *phwnd != (HWND)1; phwnd++) {</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160; </div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;<span class="comment">         * Make sure this hwnd is still around.</span></div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;        <span class="keywordflow">if</span> ((pwnd = RevalidateHwnd(*phwnd)) == NULL)</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;            <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160; </div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;        <span class="keywordflow">if</span> (dwFlags &amp;  BSF_IGNORECURRENTTASK) {</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;        <span class="comment">// Don&#39;t deal with windows in the current task.</span></div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;            <span class="keywordflow">if</span> (GETPTI(pwnd)-&gt;pq == <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>()-&gt;pq)</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;                <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;        }</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160; </div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160; </div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;<span class="comment">         * Make sure this window can handle broadcast messages</span></div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;        <span class="keywordflow">if</span> (!<a class="code" href="a00842.html#a99ccc0ce31a8cf1beac5585a408d64ff">fBroadcastProc</a>(pwnd)) {</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;            <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;        }</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;        ThreadLockAlwaysWithPti(pti, pwnd, &amp;tlpwnd);</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160; </div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;        <span class="comment">// Now, send message; This could be a query; so, remember the return value.</span></div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;        <span class="keywordflow">if</span> (dwFlags &amp; BSF_POSTMESSAGE) {</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;            <a class="code" href="a00257.html#a933a4a4818762a03428fe021dd9772a4">_PostMessage</a>(pwnd, message, wParam, lParam);</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;            BOOL fNoHang = (BOOL)dwFlags &amp; BSF_NOHANG;</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;            BOOL fForce = (BOOL)dwFlags &amp; BSF_FORCEIFHUNG;</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;            <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwTimeout;</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;            <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwResult = 0;</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160; </div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;            <span class="keywordflow">if</span> (fNoHang)</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;                dwTimeout = CMSWAITTOKILLTIMEOUT;</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;                dwTimeout = 0;</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160; </div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160; </div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="a00842.html#a4bbe3674acd8620c7d8cf43d282241c0">xxxSendMessageTimeout</a>(pwnd, message, wParam, lParam,</div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;                (fNoHang ? SMTO_ABORTIFHUNG : SMTO_NORMAL) |</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;                ((dwFlags &amp; BSF_NOTIMEOUTIFNOTHUNG) ? SMTO_NOTIMEOUTIFNOTHUNG : 0),</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;                dwTimeout, &amp;dwResult)) {</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160; </div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;                <span class="keywordflow">if</span> (dwFlags &amp; BSF_QUERY) {</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;                    <span class="comment">// For old messages, returning 0 means a deny</span></div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;                    <span class="keywordflow">if</span>(message == WM_QUERYENDSESSION)</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;                        fReturnValue = (dwResult != 0);</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;                    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;                    <span class="comment">// For all new messages, returning BROADCAST_QUERY_DENY is</span></div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;                    <span class="comment">// the way to deny a query.</span></div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;                    fReturnValue = (dwResult != BROADCAST_QUERY_DENY);</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;                }</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;                fReturnValue = fForce;</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;            }</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160; </div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;        }</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;        ThreadUnlock(&amp;tlpwnd);</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;    }</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160; </div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;    <a class="code" href="a00674.html#ac42b3a26d86746846b51a69d11fc0797">FreeHwndList</a>(pbwl);</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160; </div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;    <span class="keywordflow">return</span> fReturnValue;</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00257.html#a933a4a4818762a03428fe021dd9772a4">_PostMessage()</a>, <a class="el" href="a00017_source.html#l00112">BuildHwndList()</a>, <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00842_source.html#l00105">fBroadcastProc</a>, <a class="el" href="a00674_source.html#l00340">FreeHwndList()</a>, <a class="el" href="a00263_source.html#l00526">PtiCurrent()</a>, <a class="el" href="a00899_source.html#l02498">tagBWL::rghwnd</a>, <a class="el" href="a00365_source.html#l01393">tagWND::spwndChild</a> , 以及 <a class="el" href="a00842_source.html#l00644">xxxSendMessageTimeout()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00842_source.html#l00407">xxxSendMessageBSM()</a>.</p>

</div>
</div>
<a id="a69cf2e14dcefd941469ad5126e40f79a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69cf2e14dcefd941469ad5126e40f79a">&#9670;&nbsp;</a></span>xxxSendMessage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LONG xxxSendMessage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>wParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>lParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l00613">613</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;{</div>
<div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00842.html#a4bbe3674acd8620c7d8cf43d282241c0">xxxSendMessageTimeout</a>( pwnd, message, wParam, lParam,</div>
<div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;            SMTO_NORMAL, 0, NULL );</div>
<div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00842_source.html#l00644">xxxSendMessageTimeout()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00686_source.html#l00310">xxxActivateApp()</a>, <a class="el" href="a00686_source.html#l00430">xxxActivateThisWindow()</a>, <a class="el" href="a03290_source.html#l02005">xxxActiveWindowTracking()</a>, <a class="el" href="a00842_source.html#l02898">xxxBroadcastMessage()</a>, <a class="el" href="a00872_source.html#l00593">xxxCalcValidRects()</a>, <a class="el" href="a00632_source.html#l02042">xxxChangeClipboardChain()</a>, <a class="el" href="a03236_source.html#l00361">xxxClientShutdown2()</a>, <a class="el" href="a00635_source.html#l00031">xxxCreateWindowExWOW()</a>, <a class="el" href="a00677_source.html#l00114">xxxCsEvent()</a>, <a class="el" href="a00686_source.html#l00037">xxxDeactivate()</a>, <a class="el" href="a00671_source.html#l01146">xxxDefWindowProc()</a>, <a class="el" href="a00656_source.html#l00499">xxxDesktopWndProc()</a>, <a class="el" href="a00635_source.html#l01273">xxxDestroyWindow()</a>, <a class="el" href="a00833_source.html#l01266">xxxDoScroll()</a>, <a class="el" href="a03719_source.html#l00112">xxxDoSend()</a>, <a class="el" href="a00659_source.html#l00026">xxxDragObject()</a>, <a class="el" href="a00632_source.html#l00202">xxxDrawClipboard()</a>, <a class="el" href="a00635_source.html#l01676">xxxDW_SendDestroyMessages()</a>, <a class="el" href="a00671_source.html#l00553">xxxDWP_NCMouse()</a>, <a class="el" href="a00671_source.html#l00217">xxxDWP_ProcessVirtKey()</a>, <a class="el" href="a00671_source.html#l00392">xxxDWP_SetCursor()</a>, <a class="el" href="a00671_source.html#l00763">xxxDWPPrint()</a>, <a class="el" href="a00833_source.html#l00239">xxxEnableScrollBar()</a>, <a class="el" href="a03719_source.html#l00069">xxxEnableWindow()</a>, <a class="el" href="a03719_source.html#l00025">xxxFlashWindow()</a>, <a class="el" href="a00635_source.html#l01817">xxxFreeWindow()</a>, <a class="el" href="a03641_source.html#l00160">xxxGetControlColor()</a>, <a class="el" href="a00632_source.html#l01688">xxxGetRenderData()</a>, <a class="el" href="a00785_source.html#l00022">xxxHandleMenuMessages()</a>, <a class="el" href="a00875_source.html#l00025">xxxHandleNCMouseGuys()</a>, <a class="el" href="a00872_source.html#l02854">xxxHandleWindowPosChanged()</a>, <a class="el" href="a00752_source.html#l00214">xxxInitSendValidateMinMaxInfo()</a>, <a class="el" href="a00725_source.html#l00665">xxxInternalActivateKeyboardLayout()</a>, <a class="el" href="a00689_source.html#l00140">xxxMakeWindowForegroundWithState()</a>, <a class="el" href="a03590_source.html#l02538">xxxMenuWindowProc()</a>, <a class="el" href="a00827_source.html#l00167">xxxMetricsRecalc()</a>, <a class="el" href="a00752_source.html#l01085">xxxMinMaximize()</a>, <a class="el" href="a03590_source.html#l01977">xxxMNCancel()</a>, <a class="el" href="a03590_source.html#l00241">xxxMNChar()</a>, <a class="el" href="a03590_source.html#l01313">xxxMNCloseHierarchy()</a>, <a class="el" href="a03590_source.html#l00160">xxxMNDestroyHandler()</a>, <a class="el" href="a03590_source.html#l01770">xxxMNFindWindowFromPoint()</a>, <a class="el" href="a03590_source.html#l01286">xxxMNHideNextHierarchy()</a>, <a class="el" href="a00767_source.html#l00204">xxxMNItemSize()</a>, <a class="el" href="a03590_source.html#l00457">xxxMNKeyDown()</a>, <a class="el" href="a00785_source.html#l00466">xxxMNLoop()</a>, <a class="el" href="a03590_source.html#l02237">xxxMNMouseMove()</a>, <a class="el" href="a03590_source.html#l00797">xxxMNOpenHierarchy()</a>, <a class="el" href="a03590_source.html#l01563">xxxMNSelectItem()</a>, <a class="el" href="a00794_source.html#l00380">xxxMNStartMenuState()</a>, <a class="el" href="a00794_source.html#l00483">xxxMNStartState()</a>, <a class="el" href="a03290_source.html#l02179">xxxMouseActivate()</a>, <a class="el" href="a00800_source.html#l00909">xxxMoveSize()</a>, <a class="el" href="a00800_source.html#l00377">xxxMS_TrackMove()</a>, <a class="el" href="a00842_source.html#l02852">xxxProcessAsyncSendMessage()</a>, <a class="el" href="a00824_source.html#l02682">xxxProcessEventMessage()</a>, <a class="el" href="a00833_source.html#l02005">xxxSBWndProc()</a>, <a class="el" href="a03290_source.html#l03275">xxxScanSysQueue()</a>, <a class="el" href="a00836_source.html#l00731">xxxScrollWindowEx()</a>, <a class="el" href="a00872_source.html#l01332">xxxSendChangedMsgs()</a>, <a class="el" href="a00632_source.html#l00725">xxxSendClipboardMessage()</a>, <a class="el" href="a00812_source.html#l01093">xxxSendEraseBkgnd()</a>, <a class="el" href="a00686_source.html#l00221">xxxSendFocusMessages()</a>, <a class="el" href="a03275_source.html#l00043">xxxSendHelpMessage()</a>, <a class="el" href="a00773_source.html#l00322">xxxSendMenuDrawItemMessage()</a>, <a class="el" href="a00812_source.html#l00219">xxxSendNCPaint()</a>, <a class="el" href="a00842_source.html#l02822">xxxSendSizeMessage()</a>, <a class="el" href="a00686_source.html#l01045">xxxSetForegroundWindow2()</a>, <a class="el" href="a00833_source.html#l01070">xxxSetScrollBar()</a>, <a class="el" href="a00626_source.html#l00187">xxxSetWindowStyle()</a>, <a class="el" href="a00851_source.html#l00428">xxxShowOwnedWindows()</a>, <a class="el" href="a00851_source.html#l00081">xxxShowWindow()</a>, <a class="el" href="a00656_source.html#l02349">xxxSwitchDesktop()</a>, <a class="el" href="a00872_source.html#l01264">xxxSwpActivate()</a>, <a class="el" href="a00875_source.html#l00198">xxxSysCommand()</a>, <a class="el" href="a00758_source.html#l00147">xxxTA_AccelerateMenu()</a>, <a class="el" href="a00800_source.html#l00249">xxxTM_MoveDragRect()</a>, <a class="el" href="a00800_source.html#l00741">xxxTrackInitSize()</a>, <a class="el" href="a00788_source.html#l00052">xxxTrackPopupMenuEx()</a>, <a class="el" href="a00758_source.html#l00284">xxxTranslateAccelerator()</a>, <a class="el" href="a00896_source.html#l01082">xxxUpdateWindow2()</a> , 以及 <a class="el" href="a00923_source.html#l00227">xxxWindowHitTest2()</a>.</p>

</div>
</div>
<a id="a5225380d7fdc18b2708bfee0ec46801a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5225380d7fdc18b2708bfee0ec46801a">&#9670;&nbsp;</a></span>xxxSendMessageBSM()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LONG xxxSendMessageBSM </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>wParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>lParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>xParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l00407">407</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;{</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwFlags;</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwRecipients;</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;    <a class="code" href="a02889.html">PTHREADINFO</a> pti = <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>();</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;    LONG lRet;</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160; </div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;    <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;        dwFlags = ((<a class="code" href="a00365.html#aef5c4640c12a587d786e975951141387">LPBROADCASTSYSTEMMSGPARAMS</a>)xParam)-&gt;dwFlags;</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;        dwRecipients = ((<a class="code" href="a00365.html#aef5c4640c12a587d786e975951141387">LPBROADCASTSYSTEMMSGPARAMS</a>)xParam)-&gt;dwRecipients;</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;    } except (EXCEPTION_EXECUTE_HANDLER) {</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;    }</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160; </div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;    <span class="keywordflow">if</span> (dwRecipients &amp; (BSM_ALLDESKTOPS)) {</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;        <span class="keywordflow">if</span> (!<a class="code" href="a00839.html#ad5164087ca1b77435e44c75a73c0538f">IsPrivileged</a>(&amp;<a class="code" href="a00842.html#a515921616ee307c5862eb0be3a8e7c1e">psTcb</a>)) {</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;            dwRecipients &amp;= ~(BSM_ALLDESKTOPS);</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;        }</div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;    }</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160; </div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;    <span class="keywordflow">if</span> (dwRecipients &amp; BSM_ALLDESKTOPS) {</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;        <a class="code" href="a02809.html">PWINDOWSTATION</a> pwinsta;</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;        <a class="code" href="a02801.html">PDESKTOP</a> pdesk;</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;        <a class="code" href="a01881.html">TL</a> tlpwinsta;</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;        <a class="code" href="a01881.html">TL</a> tlpdesk;</div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;<span class="comment">     * Walk through all windowstations and desktop looking for</span></div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;<span class="comment">     * top-level windows.</span></div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;        <span class="keywordflow">for</span> (pwinsta = <a class="code" href="a03257.html#ad9f551216ba73947832de96844110fca">grpwinstaList</a>; pwinsta != NULL; ) {</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;            ThreadLockWinSta(pti, pwinsta, &amp;tlpwinsta);</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;            <span class="keywordflow">for</span> (pdesk = pwinsta-&gt;<a class="code" href="a02809.html#aafbda282c78d875d4491cf817366dc1b">rpdeskList</a>; pdesk != NULL; ) {</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;                ThreadLockDesktop(pti, pdesk, &amp;tlpdesk);</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;                lRet = <a class="code" href="a00842.html#a09e587e3bc8d6cf205bca5689f7a66cc">xxxSendBSMtoDesktop</a>(pdesk-&gt;<a class="code" href="a02801.html#a76d4881aa4c15330103e83a80e6b5dc7">pDeskInfo</a>-&gt;<a class="code" href="a02609.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, message, wParam, lParam,</div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;                    dwFlags,dwRecipients);</div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;                pdesk = pdesk-&gt;<a class="code" href="a02801.html#ace92d08d0736aef3f0b73273a6e3e5f7">rpdeskNext</a>;</div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;                ThreadUnlockDesktop(pti, &amp;tlpdesk);</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;            }</div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;            pwinsta = pwinsta-&gt;<a class="code" href="a02809.html#acdccfdf2387c6fcf147bba1ee15d5939">rpwinstaNext</a>;</div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;            ThreadUnlockWinSta(pti, &amp;tlpwinsta);</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;        }</div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160; </div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;        lRet = <a class="code" href="a00842.html#a09e587e3bc8d6cf205bca5689f7a66cc">xxxSendBSMtoDesktop</a>(pwnd, message, wParam, lParam,</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;                    dwFlags,dwRecipients);</div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;    }</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160; </div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;    <span class="keywordflow">return</span> lRet;</div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a03257_source.html#l00182">grpwinstaList</a>, <a class="el" href="a00839_source.html#l00554">IsPrivileged()</a>, <a class="el" href="a00899_source.html#l01706">tagDESKTOP::pDeskInfo</a>, <a class="el" href="a00839_source.html#l00022">psTcb</a>, <a class="el" href="a00263_source.html#l00526">PtiCurrent()</a>, <a class="el" href="a00899_source.html#l01746">tagWINDOWSTATION::rpdeskList</a>, <a class="el" href="a00899_source.html#l01709">tagDESKTOP::rpdeskNext</a>, <a class="el" href="a00899_source.html#l01745">tagWINDOWSTATION::rpwinstaNext</a>, <a class="el" href="a00365_source.html#l01603">tagDESKTOPINFO::spwnd</a> , 以及 <a class="el" href="a00842_source.html#l00320">xxxSendBSMtoDesktop()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03665_source.html#l00928">InitFunctionTables()</a>.</p>

</div>
</div>
<a id="acfe6f35d8e62e08d08e52a221f643c9d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acfe6f35d8e62e08d08e52a221f643c9d">&#9670;&nbsp;</a></span>xxxSendMessageCallback()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL xxxSendMessageCallback </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>wParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>lParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SENDASYNCPROC&#160;</td>
          <td class="paramname"><em>lpResultCallBack</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fClientRequest</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l01013">1013</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>&#160;{</div>
<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>&#160;    LONG lRet;</div>
<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>&#160;    <a class="code" href="a02889.html">PTHREADINFO</a> pti;</div>
<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>&#160;    BOOL fQueuedNotify;</div>
<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>&#160; </div>
<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>&#160;<span class="comment">     * See if this is a queued notify message.</span></div>
<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>&#160;    fQueuedNotify = FALSE;</div>
<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>&#160;    <span class="keywordflow">if</span> (lpResultCallBack == NULL &amp;&amp; dwData == 1L)</div>
<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>&#160;        fQueuedNotify = TRUE;</div>
<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>&#160; </div>
<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>&#160;<span class="comment">     * First check to see if this message takes DWORDs only. If it does not,</span></div>
<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>&#160;<span class="comment">     * fail the call. Cannot allow an app to post a message with pointers or</span></div>
<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>&#160;<span class="comment">     * handles in it - this can cause the server to fault and cause other</span></div>
<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>&#160;<span class="comment">     * problems - such as causing apps in separate address spaces to fault.</span></div>
<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>&#160;<span class="comment">     * (or even an app in the same address space to fault!)</span></div>
<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>&#160;    <span class="keywordflow">if</span> (TESTSYNCONLYMESSAGE(message, wParam)) {</div>
<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>&#160;        <a class="code" href="a00371.html#adbdd8355d15a97b6f3a9e4766e6a2cc1">RIPERR1</a>(ERROR_INVALID_PARAMETER, <a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>,</div>
<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>&#160;                <span class="stringliteral">&quot;Trying to non-synchronously send a structure msg=%lX&quot;</span>, message);</div>
<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>&#160;    }</div>
<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>&#160; </div>
<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>&#160;    CheckCritIn();</div>
<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>&#160; </div>
<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>&#160;<span class="comment">     * Is this a BroadcastMsg()?</span></div>
<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>&#160;    <span class="keywordflow">if</span> (pwnd == (<a class="code" href="a02581.html">PWND</a>)-1) {</div>
<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>&#160;        <a class="code" href="a02961.html">BROADCASTMSG</a> bcm;</div>
<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>&#160;        <a class="code" href="a02961.html">PBROADCASTMSG</a> pbcm = NULL;</div>
<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>&#160;        <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> uCmd = BMSG_SENDNOTIFYMSG;</div>
<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>&#160; </div>
<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>&#160;        <span class="keywordflow">if</span> (lpResultCallBack != NULL) {</div>
<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>&#160;            uCmd = BMSG_SENDMSGCALLBACK;</div>
<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>&#160;            bcm.<a class="code" href="a02961.html#ad5de33f64346536444ff1b332231462e">cb</a>.<a class="code" href="a02961.html#a7ee9bbcad17fb211571e22478070487e">lpResultCallBack</a> = lpResultCallBack;</div>
<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>&#160;            bcm.<a class="code" href="a02961.html#ad5de33f64346536444ff1b332231462e">cb</a>.<a class="code" href="a02961.html#ad38b92af7d164a277eb2d30b5e65a489">dwData</a> = dwData;</div>
<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>&#160;            bcm.<a class="code" href="a02961.html#ad5de33f64346536444ff1b332231462e">cb</a>.<a class="code" href="a02961.html#a85a9b71d92ab350834cac1753f14a972">bClientRequest</a> = fClientRequest;</div>
<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>&#160;            pbcm = &amp;bcm;</div>
<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>&#160;        }</div>
<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>&#160; </div>
<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00842.html#adb5204decd255d5005372b2c12890113">xxxBroadcastMessage</a>(NULL, message, wParam, lParam, uCmd, pbcm );</div>
<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>&#160;    }</div>
<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>&#160; </div>
<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(pwnd);</div>
<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>&#160; </div>
<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>&#160;    pti = <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>();</div>
<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>&#160; </div>
<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>&#160;<span class="comment">     * Do inter-thread call if window thead differs from current thread.</span></div>
<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>&#160;<span class="comment">     * We pass NULL for ptiSender to tell xxxInterSendMsgEx() that this is</span></div>
<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>&#160;<span class="comment">     * a xxxSendNotifyMessage() and that there&#39;s no need for a reply.</span></div>
<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>&#160;<span class="comment">     *</span></div>
<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>&#160;<span class="comment">     * If this is a queued notify, always call InterSendMsgEx() so that</span></div>
<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>&#160;<span class="comment">     * we queue it up and return - we don&#39;t do callbacks here with queued</span></div>
<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>&#160;<span class="comment">     * notifies.</span></div>
<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>&#160;    <span class="keywordflow">if</span> (fQueuedNotify || pti != GETPTI(pwnd)) {</div>
<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>&#160;        <a class="code" href="a02949.html">INTRSENDMSGEX</a> ism;</div>
<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>&#160;        <a class="code" href="a02949.html">PINTRSENDMSGEX</a> pism = NULL;</div>
<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>&#160; </div>
<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>&#160;        <span class="keywordflow">if</span> (lpResultCallBack != NULL) {  <span class="comment">/* CallBack request */</span></div>
<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>&#160;            ism.<a class="code" href="a02949.html#a547498bf050b0628b65f83ba9237ce84">fuCall</a> = ISM_CALLBACK | (fClientRequest ? ISM_CB_CLIENT : 0);</div>
<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>&#160;            ism.<a class="code" href="a02949.html#a7ee9bbcad17fb211571e22478070487e">lpResultCallBack</a> = lpResultCallBack;</div>
<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>&#160;            ism.<a class="code" href="a02949.html#ad38b92af7d164a277eb2d30b5e65a489">dwData</a> = dwData;</div>
<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>&#160;            pism = &amp;ism;</div>
<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>&#160;        }</div>
<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>&#160;        <span class="keywordflow">return</span> (BOOL)<a class="code" href="a00842.html#a9e53f556a04607e23d1b746d5274b952">xxxInterSendMsgEx</a>(pwnd, message, wParam, lParam,</div>
<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>&#160;                NULL, GETPTI(pwnd), pism );</div>
<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>&#160;    }</div>
<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>&#160; </div>
<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>&#160;<span class="comment">     * Call WH_CALLWNDPROC if it&#39;s installed.</span></div>
<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>&#160;    <span class="keywordflow">if</span> (!fQueuedNotify &amp;&amp; IsHooked(pti, WHF_CALLWNDPROC)) {</div>
<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>&#160;        <a class="code" href="a02937.html">CWPSTRUCTEX</a> cwps;</div>
<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>&#160; </div>
<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>&#160;        cwps.hwnd = HWq(pwnd);</div>
<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>&#160;        cwps.message = message;</div>
<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>&#160;        cwps.wParam = wParam;</div>
<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>&#160;        cwps.lParam = lParam;</div>
<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>&#160;        cwps.<a class="code" href="a02937.html#a2a4daf3bf234ddf89523fc62f9e0904a">psmsSender</a> = NULL;</div>
<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>&#160; </div>
<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>&#160;<span class="comment">         * Unlike Win3.1, NT and Win95 ignore any changes the app makes</span></div>
<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>&#160;<span class="comment">         * to the CWPSTRUCT contents.</span></div>
<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>&#160;        <a class="code" href="a00701.html#a4a596c02b66f7f049c18711b882e0b89">xxxCallHook</a>(HC_ACTION, FALSE, (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)&amp;cwps, WH_CALLWNDPROC);</div>
<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>&#160; </div>
<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>&#160;<span class="comment">         * Unlike Win3.1, NT and Win95 ignore any changes the app makes</span></div>
<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>&#160;<span class="comment">         * to the CWPSTRUCT contents.  If this behavior reverts to</span></div>
<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>&#160;<span class="comment">         * Win3.1 semantics, we will need to copy the new parameters</span></div>
<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>&#160;<span class="comment">         * from cwps.</span></div>
<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>&#160;    }</div>
<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>&#160; </div>
<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>&#160;<span class="comment">     * If this window&#39;s proc is meant to be executed from the server side</span></div>
<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>&#160;<span class="comment">     * we&#39;ll just stay inside the semaphore and call it directly.  Note</span></div>
<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>&#160;<span class="comment">     * how we don&#39;t convert the pwnd into an hwnd before calling the proc.</span></div>
<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>&#160;    <span class="keywordflow">if</span> (TestWF(pwnd, WFSERVERSIDEPROC)) {</div>
<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>&#160;        lRet = pwnd-&gt;<a class="code" href="a02581.html#ae7a5a1d213bfe6dce2e6eab68a2a8bb8">lpfnWndProc</a>(pwnd, message, wParam, lParam);</div>
<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>&#160;        <a class="code" href="a02569.html">PCLS</a> pcls;</div>
<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>&#160;        <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwSCMSFlags;</div>
<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>&#160; </div>
<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>&#160;<span class="comment">         * If the window has a client side worker proc and has</span></div>
<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>&#160;<span class="comment">         * not been subclassed, dispatch the message directly</span></div>
<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>&#160;<span class="comment">         * to the worker proc.  Otherwise, dispatch it normally.</span></div>
<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>&#160;        pcls = pwnd-&gt;<a class="code" href="a02581.html#a9ac6b15978318e3401ef9a878ccb40ac">pcls</a>;</div>
<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>&#160;        dwSCMSFlags = TestWF(pwnd, WFANSIPROC) ? SCMS_FLAGS_ANSI : 0;</div>
<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>&#160;        <span class="keywordflow">if</span> (pcls-&gt;<a class="code" href="a02569.html#abf7087f027fa856753b00194fa491d18">lpfnWorker</a> &amp;&amp;</div>
<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>&#160;            ((<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)pwnd-&gt;<a class="code" href="a02581.html#ae7a5a1d213bfe6dce2e6eab68a2a8bb8">lpfnWndProc</a> == FNID_TO_CLIENT_PFNW(pcls-&gt;<a class="code" href="a02569.html#aa186be7fc47d6ee190a1fd364459a743">fnid</a>) ||</div>
<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>&#160;             (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)pwnd-&gt;<a class="code" href="a02581.html#ae7a5a1d213bfe6dce2e6eab68a2a8bb8">lpfnWndProc</a> == FNID_TO_CLIENT_PFNA(pcls-&gt;<a class="code" href="a02569.html#aa186be7fc47d6ee190a1fd364459a743">fnid</a>))) {</div>
<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>&#160;            <a class="code" href="a02517.html">PWNDMSG</a> pwm = &amp;<a class="code" href="a00020.html#ac02f0141c423acd033ecdd2a757a3cc1">gSharedInfo</a>.<a class="code" href="a02521.html#a7e26cfe7a314d23f30409cf4dcb86b82">awmControl</a>[pcls-&gt;<a class="code" href="a02569.html#aa186be7fc47d6ee190a1fd364459a743">fnid</a> - FNID_START];</div>
<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>&#160; </div>
<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>&#160;<span class="comment">             * If this message is not processed by the control, call</span></div>
<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>&#160;<span class="comment">             * xxxDefWindowProc</span></div>
<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>&#160;            <span class="keywordflow">if</span> (pwm-&gt;<a class="code" href="a02517.html#a2d6495c3cf7fb3fbdd27638ad3de548e">abMsgs</a> &amp;&amp; ((message &gt; pwm-&gt;<a class="code" href="a02517.html#a42d641821b5c3c8a4f9dd0328dabfc8a">maxMsgs</a>) ||</div>
<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>&#160;                    !((pwm-&gt;<a class="code" href="a02517.html#a2d6495c3cf7fb3fbdd27638ad3de548e">abMsgs</a>)[message / 8] &amp; (1 &lt;&lt; (message &amp; 7))))) {</div>
<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>&#160; </div>
<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>&#160;                <a class="code" href="a02641.html">PDLG</a> pdlg;</div>
<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>&#160;<span class="comment">                 * Special case dialogs so that we can ignore unimportant</span></div>
<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>&#160;<span class="comment">                 * messages during dialog creation.</span></div>
<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>&#160;                <span class="keywordflow">if</span> (pcls-&gt;<a class="code" href="a02569.html#aa186be7fc47d6ee190a1fd364459a743">fnid</a> == FNID_DIALOG &amp;&amp;</div>
<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>&#160;                        (pdlg = <a class="code" href="a02641.html">PDLG</a>(pwnd)) &amp;&amp;</div>
<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>&#160;                        pdlg-&gt;<a class="code" href="a02641.html#acb492d29e9933b1378a48aa31c2b7290">lpfnDlg</a> != NULL) {</div>
<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>&#160;                    lRet = ScSendMessage(pwnd, message, wParam, lParam,</div>
<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>&#160;                            dwSCMSFlags, pcls-&gt;<a class="code" href="a02569.html#abf7087f027fa856753b00194fa491d18">lpfnWorker</a>, dwSCMSFlags);</div>
<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>&#160;                    lRet = <a class="code" href="a00671.html#af0a7cefc146c51b12208e692b0f67960">xxxDefWindowProc</a>(pwnd, message, wParam, lParam);</div>
<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>&#160;                }</div>
<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>&#160;                lRet = ScSendMessage(pwnd, message, wParam, lParam,</div>
<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>&#160;                        dwSCMSFlags, pcls-&gt;<a class="code" href="a02569.html#abf7087f027fa856753b00194fa491d18">lpfnWorker</a>, dwSCMSFlags);</div>
<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>&#160;            }</div>
<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>&#160;            lRet = ScSendMessage(pwnd, message, wParam, lParam,</div>
<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>&#160;                    (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)pwnd-&gt;<a class="code" href="a02581.html#ae7a5a1d213bfe6dce2e6eab68a2a8bb8">lpfnWndProc</a>,</div>
<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>&#160;                    <a class="code" href="a00020.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="code" href="a02513.html#a6f4de7f11f44318feef70149fa2d31cc">apfnClientW</a>.<a class="code" href="a02501.html#aa8d047fb3797fd6b520383ee297357bf">pfnDispatchMessage</a>, dwSCMSFlags);</div>
<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>&#160;        }</div>
<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>&#160;    }</div>
<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>&#160; </div>
<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>&#160;    <span class="keywordflow">if</span> (lpResultCallBack != NULL) {</div>
<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>&#160;       <span class="comment">/*</span></div>
<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>&#160;<span class="comment">        * Call the callback funtion for the return value</span></div>
<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>&#160;<span class="comment">        */</span></div>
<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>&#160;        <span class="keywordflow">if</span> (fClientRequest) {</div>
<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>&#160;<span class="comment">             * The application-defined callback proc is neither Unicode/ANSI</span></div>
<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>&#160;            CallClientProcA(pwnd, message, dwData, lRet,</div>
<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>&#160;                    (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)lpResultCallBack);</div>
<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>&#160;            (*lpResultCallBack)((HWND)pwnd, message, dwData, lRet);</div>
<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>&#160;        }</div>
<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>&#160;    }</div>
<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>&#160; </div>
<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>&#160;<span class="comment">     * Call WH_CALLWNDPROCRET if it&#39;s installed.</span></div>
<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>&#160;    <span class="keywordflow">if</span> (!fQueuedNotify &amp;&amp; IsHooked(pti, WHF_CALLWNDPROCRET)) {</div>
<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>&#160;        <a class="code" href="a02941.html">CWPRETSTRUCTEX</a> cwps;</div>
<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>&#160; </div>
<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>&#160;        cwps.hwnd = HWq(pwnd);</div>
<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>&#160;        cwps.message = message;</div>
<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>&#160;        cwps.wParam = wParam;</div>
<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>&#160;        cwps.lParam = lParam;</div>
<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>&#160;        cwps.<a class="code" href="a02941.html#a33e2687b8b26e3e485b2584c10e324bd">lResult</a> = lRet;</div>
<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>&#160;        cwps.<a class="code" href="a02941.html#a2a4daf3bf234ddf89523fc62f9e0904a">psmsSender</a> = NULL;</div>
<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>&#160; </div>
<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>&#160;<span class="comment">         * Unlike Win3.1, NT and Win95 ignore any changes the app makes</span></div>
<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>&#160;<span class="comment">         * to the CWPSTRUCT contents.</span></div>
<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>&#160;        <a class="code" href="a00701.html#a4a596c02b66f7f049c18711b882e0b89">xxxCallHook</a>(HC_ACTION, FALSE, (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)&amp;cwps, WH_CALLWNDPROCRET);</div>
<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>&#160; </div>
<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>&#160;<span class="comment">         * Unlike Win3.1, NT and Win95 ignore any changes the app makes</span></div>
<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>&#160;<span class="comment">         * to the CWPSTRUCT contents.  If this behavior reverts to</span></div>
<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>&#160;<span class="comment">         * Win3.1 semantics, we will need to copy the new parameters</span></div>
<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>&#160;<span class="comment">         * from cwps.</span></div>
<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>&#160;    }</div>
<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>&#160; </div>
<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00365_source.html#l01055">_WNDMSG::abMsgs</a>, <a class="el" href="a00365_source.html#l00966">tagSERVERINFO::apfnClientW</a>, <a class="el" href="a00365_source.html#l01068">tagSHAREDINFO::awmControl</a>, <a class="el" href="a00899_source.html#l02696">tagBROADCASTMSG::bClientRequest</a>, <a class="el" href="a02961.html#ad5de33f64346536444ff1b332231462e">tagBROADCASTMSG::cb</a>, <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00899_source.html#l02643">tagINTERSENDMSGEX::dwData</a>, <a class="el" href="a00899_source.html#l02695">tagBROADCASTMSG::dwData</a>, <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00365_source.html#l01327">tagCLS::fnid</a>, <a class="el" href="a00899_source.html#l02640">tagINTERSENDMSGEX::fuCall</a>, <a class="el" href="a00020_source.html#l00039">gpsi</a>, <a class="el" href="a00020_source.html#l00040">gSharedInfo</a>, <a class="el" href="a00365_source.html#l02147">_DLG::lpfnDlg</a>, <a class="el" href="a00365_source.html#l01401">tagWND::lpfnWndProc</a>, <a class="el" href="a00365_source.html#l01349">tagCLS::lpfnWorker</a>, <a class="el" href="a00899_source.html#l02642">tagINTERSENDMSGEX::lpResultCallBack</a>, <a class="el" href="a00899_source.html#l02694">tagBROADCASTMSG::lpResultCallBack</a>, <a class="el" href="a00899_source.html#l02585">_CWPRETSTRUCTEX::lResult</a>, <a class="el" href="a00365_source.html#l01054">_WNDMSG::maxMsgs</a>, <a class="el" href="a00365_source.html#l01403">tagWND::pcls</a>, <a class="el" href="a00365_source.html#l00752">_PFNCLIENT::pfnDispatchMessage</a>, <a class="el" href="a00899_source.html#l02581">_CWPSTRUCTEX::psmsSender</a>, <a class="el" href="a00899_source.html#l02587">_CWPRETSTRUCTEX::psmsSender</a>, <a class="el" href="a00263_source.html#l00526">PtiCurrent()</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00120">RIPERR1</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>, <a class="el" href="a00842_source.html#l02898">xxxBroadcastMessage()</a>, <a class="el" href="a00701_source.html#l00954">xxxCallHook()</a>, <a class="el" href="a00671_source.html#l01146">xxxDefWindowProc()</a> , 以及 <a class="el" href="a00842_source.html#l01235">xxxInterSendMsgEx()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03614_source.html#l04348">NtUserSendMessageCallback()</a>, <a class="el" href="a00842_source.html#l00888">QueueNotifyMessage()</a>, <a class="el" href="a00842_source.html#l02898">xxxBroadcastMessage()</a>, <a class="el" href="a00617_source.html#l00108">xxxCapture()</a>, <a class="el" href="a00890_source.html#l00780">xxxPaintIconsInSwitchWindow()</a> , 以及 <a class="el" href="a00842_source.html#l00968">xxxSendNotifyMessage()</a>.</p>

</div>
</div>
<a id="aec00217f2ba38eaaca234a78f94172aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec00217f2ba38eaaca234a78f94172aa">&#9670;&nbsp;</a></span>xxxSendMessageEx()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LONG xxxSendMessageEx </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>wParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>lParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>xParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l00533">533</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;{</div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;<span class="comment">     * extract values from the xParam if from TimeOut call</span></div>
<div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;<span class="comment">     * This should be the only way this function is ever</span></div>
<div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;<span class="comment">     * called, but check it just in case...</span></div>
<div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;    <span class="keywordflow">if</span> (xParam != 0L) {</div>
<div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;        LONG lRet;</div>
<div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;        LONG lResult;</div>
<div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;        NTSTATUS Status;</div>
<div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;        <a class="code" href="a02661.html">SNDMSGTIMEOUT</a> smto;</div>
<div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;        <a class="code" href="a00365.html#abce9368ed5b93dc4c0e3e9cc7c99157b">PETHREAD</a> Thread = PsGetCurrentThread();</div>
<div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160; </div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;        <span class="keywordflow">if</span> (Thread == NULL)</div>
<div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;            <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160; </div>
<div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;<span class="comment">         * Probe all read arguments</span></div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;        <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;            ProbeForWrite((PVOID)xParam, <span class="keyword">sizeof</span>(smto), <span class="keyword">sizeof</span>(ULONG));</div>
<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;            smto = *(<a class="code" href="a02661.html">SNDMSGTIMEOUT</a> *)xParam;</div>
<div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;            Status = STATUS_SUCCESS;</div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;        } except (EXCEPTION_EXECUTE_HANDLER) {</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;            Status = GetExceptionCode();</div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;        }</div>
<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;        <span class="keywordflow">if</span> ( !NT_SUCCESS(Status) ) {</div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;            <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;        }</div>
<div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160; </div>
<div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160;        lRet = <a class="code" href="a00842.html#a4bbe3674acd8620c7d8cf43d282241c0">xxxSendMessageTimeout</a>(pwnd, message, wParam, lParam,</div>
<div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;                smto.<a class="code" href="a02661.html#a9e27c6666cd80d42c078d160ef2c15e6">fuFlags</a>, smto.<a class="code" href="a02661.html#ae107724d62987d10ec9c8956bd404195">uTimeout</a>, &amp;lResult );</div>
<div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160; </div>
<div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;<span class="comment">         * put the result back into the client</span></div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;        smto.<a class="code" href="a02661.html#a14cb5ba1beb73f2dbfcf1a09287c48c3">lSMTOResult</a> = lResult;</div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;        smto.<a class="code" href="a02661.html#acf1d1660695dbf638313f938156a442c">lSMTOReturn</a> = lRet;</div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160; </div>
<div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;        <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;            *(<a class="code" href="a02661.html">SNDMSGTIMEOUT</a> *)xParam = smto;</div>
<div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;        } except (EXCEPTION_EXECUTE_HANDLER) {</div>
<div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;            <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;SendMessageTimeout can&#39;t save results&quot;</span>);</div>
<div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;            lResult = FALSE;</div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;        }</div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160; </div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;<span class="comment">         * Return the lResult so our thunks are happy.</span></div>
<div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;        <span class="keywordflow">return</span> lResult;</div>
<div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;    }</div>
<div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160; </div>
<div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00842.html#a4bbe3674acd8620c7d8cf43d282241c0">xxxSendMessageTimeout</a>(pwnd, message, wParam,</div>
<div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;            lParam, SMTO_NORMAL, 0, NULL );</div>
<div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00365_source.html#l02387">tagSNDMSGTIMEOUT::fuFlags</a>, <a class="el" href="a00365_source.html#l02390">tagSNDMSGTIMEOUT::lSMTOResult</a>, <a class="el" href="a00365_source.html#l02389">tagSNDMSGTIMEOUT::lSMTOReturn</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00131">RIPMSG0</a>, <a class="el" href="a00365_source.html#l02388">tagSNDMSGTIMEOUT::uTimeout</a> , 以及 <a class="el" href="a00842_source.html#l00644">xxxSendMessageTimeout()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03665_source.html#l00928">InitFunctionTables()</a> , 以及 <a class="el" href="a00842_source.html#l00480">xxxSendMessageFF()</a>.</p>

</div>
</div>
<a id="a979009868386a45dc6249e9625c5c6db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a979009868386a45dc6249e9625c5c6db">&#9670;&nbsp;</a></span>xxxSendMessageFF()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LONG xxxSendMessageFF </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>wParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>lParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>xParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l00480">480</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;{</div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;    DBG_UNREFERENCED_PARAMETER(pwnd);</div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160; </div>
<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;<span class="comment">     * Call xxxSendMessage() to do broadcasting rather than calling</span></div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;<span class="comment">     * broadcast from here in case any internal code that calls</span></div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;<span class="comment">     * sendmessage passes a -1 (that way the internal code doesn&#39;t</span></div>
<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;<span class="comment">     * need to know about this weird routine).</span></div>
<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;    <span class="keywordflow">if</span> (xParam != 0L) {</div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;<span class="comment">         * SendMessageTimeout call</span></div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00842.html#aec00217f2ba38eaaca234a78f94172aa">xxxSendMessageEx</a>((<a class="code" href="a02581.html">PWND</a>)0xFFFFFFFF, message, wParam, lParam, xParam);</div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;<span class="comment">         * Normal SendMessage call</span></div>
<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00842.html#a4bbe3674acd8620c7d8cf43d282241c0">xxxSendMessageTimeout</a>((<a class="code" href="a02581.html">PWND</a>)0xFFFFFFFF, message, wParam,</div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;                lParam, SMTO_NORMAL, 0, NULL );</div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;    }</div>
<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00842_source.html#l00533">xxxSendMessageEx()</a> , 以及 <a class="el" href="a00842_source.html#l00644">xxxSendMessageTimeout()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03665_source.html#l00928">InitFunctionTables()</a>.</p>

</div>
</div>
<a id="a4bbe3674acd8620c7d8cf43d282241c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4bbe3674acd8620c7d8cf43d282241c0">&#9670;&nbsp;</a></span>xxxSendMessageTimeout()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LONG xxxSendMessageTimeout </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>wParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>lParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>fuFlags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>uTimeout</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPLONG&#160;</td>
          <td class="paramname"><em>lpdwResult</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l00644">644</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00652"></a><span class="lineno">  652</span>&#160;{</div>
<div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160;    LONG lRet;</div>
<div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160;    <a class="code" href="a02889.html">PTHREADINFO</a> pti;</div>
<div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;    <a class="code" href="a02569.html">PCLS</a> pcls;</div>
<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwSCMSFlags;</div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> uResult;       <span class="comment">// holder for DDE_INITIATE case</span></div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160; </div>
<div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;    CheckCritIn();</div>
<div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160; </div>
<div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;    <span class="keywordflow">if</span> (lpdwResult != NULL)</div>
<div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160;       *lpdwResult = 0L;</div>
<div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160; </div>
<div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;<span class="comment">     * Is this a BroadcastMsg()?</span></div>
<div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;    <span class="keywordflow">if</span> (pwnd == (<a class="code" href="a02581.html">PWND</a>)-1) {</div>
<div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;        <a class="code" href="a02961.html">BROADCASTMSG</a> bcm;</div>
<div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;        <a class="code" href="a02961.html">PBROADCASTMSG</a> pbcm = NULL;</div>
<div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;        <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> uCmd = BMSG_SENDMSG;</div>
<div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160; </div>
<div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;        <span class="keywordflow">if</span> (lpdwResult != NULL) {</div>
<div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160;            uCmd = BMSG_SENDMSGTIMEOUT;</div>
<div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;            bcm.<a class="code" href="a02961.html#a668dc7e9008960bc451044e1ea615c38">to</a>.<a class="code" href="a02961.html#a9e27c6666cd80d42c078d160ef2c15e6">fuFlags</a> = fuFlags;</div>
<div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160;            bcm.<a class="code" href="a02961.html#a668dc7e9008960bc451044e1ea615c38">to</a>.<a class="code" href="a02961.html#ae107724d62987d10ec9c8956bd404195">uTimeout</a> = uTimeout;</div>
<div class="line"><a name="l00676"></a><span class="lineno">  676</span>&#160;            bcm.<a class="code" href="a02961.html#a668dc7e9008960bc451044e1ea615c38">to</a>.<a class="code" href="a02961.html#a90d568c13a21cdb08e2b4d604ea44c2d">lpdwResult</a> = lpdwResult;</div>
<div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160;            pbcm = &amp;bcm;</div>
<div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160;        }</div>
<div class="line"><a name="l00679"></a><span class="lineno">  679</span>&#160; </div>
<div class="line"><a name="l00680"></a><span class="lineno">  680</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00842.html#adb5204decd255d5005372b2c12890113">xxxBroadcastMessage</a>(NULL, message, wParam, lParam, uCmd, pbcm );</div>
<div class="line"><a name="l00681"></a><span class="lineno">  681</span>&#160;    }</div>
<div class="line"><a name="l00682"></a><span class="lineno">  682</span>&#160; </div>
<div class="line"><a name="l00683"></a><span class="lineno">  683</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(pwnd);</div>
<div class="line"><a name="l00684"></a><span class="lineno">  684</span>&#160; </div>
<div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160;    <span class="keywordflow">if</span> (message &gt;= WM_DDE_FIRST &amp;&amp; message &lt;= WM_DDE_LAST) {</div>
<div class="line"><a name="l00686"></a><span class="lineno">  686</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00687"></a><span class="lineno">  687</span>&#160;<span class="comment">         * Even though apps should only send WM_DDE_INITIATE or WM_DDE_ACK</span></div>
<div class="line"><a name="l00688"></a><span class="lineno">  688</span>&#160;<span class="comment">         * messages, we hook them all so DDESPY can monitor them.</span></div>
<div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;        <span class="keywordflow">if</span> (!<a class="code" href="a03188.html#a64784361de3f90215827f6d66600d58f">xxxDDETrackSendHook</a>(pwnd, message, wParam, lParam)) {</div>
<div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160;            <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00692"></a><span class="lineno">  692</span>&#160;        }</div>
<div class="line"><a name="l00693"></a><span class="lineno">  693</span>&#160;        <span class="keywordflow">if</span> (message == WM_DDE_INITIATE &amp;&amp; <a class="code" href="a03257.html#aec7ff19e26adc101b25587d2cb55dfa0">guDdeSendTimeout</a>) {</div>
<div class="line"><a name="l00694"></a><span class="lineno">  694</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00695"></a><span class="lineno">  695</span>&#160;<span class="comment">             * This hack prevents DDE apps from locking up because some</span></div>
<div class="line"><a name="l00696"></a><span class="lineno">  696</span>&#160;<span class="comment">             * bozo in the system has a top level window and is not</span></div>
<div class="line"><a name="l00697"></a><span class="lineno">  697</span>&#160;<span class="comment">             * processing messages.  guDdeSendTimeout is registry set.</span></div>
<div class="line"><a name="l00698"></a><span class="lineno">  698</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160;            <span class="keywordflow">if</span> (lpdwResult == NULL) {</div>
<div class="line"><a name="l00700"></a><span class="lineno">  700</span>&#160;                lpdwResult = &amp;uResult;</div>
<div class="line"><a name="l00701"></a><span class="lineno">  701</span>&#160;            }</div>
<div class="line"><a name="l00702"></a><span class="lineno">  702</span>&#160;            fuFlags |= SMTO_ABORTIFHUNG;</div>
<div class="line"><a name="l00703"></a><span class="lineno">  703</span>&#160;            uTimeout = <a class="code" href="a03257.html#aec7ff19e26adc101b25587d2cb55dfa0">guDdeSendTimeout</a>;</div>
<div class="line"><a name="l00704"></a><span class="lineno">  704</span>&#160;        }</div>
<div class="line"><a name="l00705"></a><span class="lineno">  705</span>&#160;    }</div>
<div class="line"><a name="l00706"></a><span class="lineno">  706</span>&#160; </div>
<div class="line"><a name="l00707"></a><span class="lineno">  707</span>&#160;    pti = <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>();</div>
<div class="line"><a name="l00708"></a><span class="lineno">  708</span>&#160; </div>
<div class="line"><a name="l00709"></a><span class="lineno">  709</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00710"></a><span class="lineno">  710</span>&#160;<span class="comment">     * Do inter-thread call if window queue differs from current queue</span></div>
<div class="line"><a name="l00711"></a><span class="lineno">  711</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00712"></a><span class="lineno">  712</span>&#160;    <span class="keywordflow">if</span> (pti != GETPTI(pwnd)) {</div>
<div class="line"><a name="l00713"></a><span class="lineno">  713</span>&#160;        <a class="code" href="a02949.html">INTRSENDMSGEX</a> ism;</div>
<div class="line"><a name="l00714"></a><span class="lineno">  714</span>&#160;        <a class="code" href="a02949.html">PINTRSENDMSGEX</a> pism = NULL;</div>
<div class="line"><a name="l00715"></a><span class="lineno">  715</span>&#160; </div>
<div class="line"><a name="l00716"></a><span class="lineno">  716</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00717"></a><span class="lineno">  717</span>&#160;<span class="comment">         * If this window is a zombie, don&#39;t allow inter-thread send messages</span></div>
<div class="line"><a name="l00718"></a><span class="lineno">  718</span>&#160;<span class="comment">         * to it.</span></div>
<div class="line"><a name="l00719"></a><span class="lineno">  719</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00720"></a><span class="lineno">  720</span>&#160;        <span class="keywordflow">if</span> (HMIsMarkDestroy(pwnd))</div>
<div class="line"><a name="l00721"></a><span class="lineno">  721</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="a00671.html#af0a7cefc146c51b12208e692b0f67960">xxxDefWindowProc</a>(pwnd, message, wParam, lParam);</div>
<div class="line"><a name="l00722"></a><span class="lineno">  722</span>&#160; </div>
<div class="line"><a name="l00723"></a><span class="lineno">  723</span>&#160;        <span class="keywordflow">if</span> ( lpdwResult != NULL ) {</div>
<div class="line"><a name="l00724"></a><span class="lineno">  724</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00725"></a><span class="lineno">  725</span>&#160;<span class="comment">             * fail if we think the thread is hung</span></div>
<div class="line"><a name="l00726"></a><span class="lineno">  726</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00727"></a><span class="lineno">  727</span>&#160;            <span class="keywordflow">if</span> ((fuFlags &amp; SMTO_ABORTIFHUNG) &amp;&amp; <a class="code" href="a00707.html#a47795b53cdc961798b5310ea5b01456b">FHungApp</a>(GETPTI(pwnd), CMSWAITTOKILLTIMEOUT))</div>
<div class="line"><a name="l00728"></a><span class="lineno">  728</span>&#160;               <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00729"></a><span class="lineno">  729</span>&#160; </div>
<div class="line"><a name="l00730"></a><span class="lineno">  730</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00731"></a><span class="lineno">  731</span>&#160;<span class="comment">             * Setup for a InterSend time-out call</span></div>
<div class="line"><a name="l00732"></a><span class="lineno">  732</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00733"></a><span class="lineno">  733</span>&#160;            ism.<a class="code" href="a02949.html#a547498bf050b0628b65f83ba9237ce84">fuCall</a> = ISM_TIMEOUT;</div>
<div class="line"><a name="l00734"></a><span class="lineno">  734</span>&#160;            ism.<a class="code" href="a02949.html#a856e9fd858c8bdaf2ebbec24df1de084">fuSend</a> = fuFlags;</div>
<div class="line"><a name="l00735"></a><span class="lineno">  735</span>&#160;            ism.<a class="code" href="a02949.html#ae107724d62987d10ec9c8956bd404195">uTimeout</a> = uTimeout;</div>
<div class="line"><a name="l00736"></a><span class="lineno">  736</span>&#160;            ism.<a class="code" href="a02949.html#a90d568c13a21cdb08e2b4d604ea44c2d">lpdwResult</a> = lpdwResult;</div>
<div class="line"><a name="l00737"></a><span class="lineno">  737</span>&#160;            pism = &amp;ism;</div>
<div class="line"><a name="l00738"></a><span class="lineno">  738</span>&#160;        }</div>
<div class="line"><a name="l00739"></a><span class="lineno">  739</span>&#160; </div>
<div class="line"><a name="l00740"></a><span class="lineno">  740</span>&#160;        lRet = <a class="code" href="a00842.html#a9e53f556a04607e23d1b746d5274b952">xxxInterSendMsgEx</a>(pwnd, message, wParam, lParam,</div>
<div class="line"><a name="l00741"></a><span class="lineno">  741</span>&#160;                pti, GETPTI(pwnd), pism );</div>
<div class="line"><a name="l00742"></a><span class="lineno">  742</span>&#160; </div>
<div class="line"><a name="l00743"></a><span class="lineno">  743</span>&#160;        <span class="keywordflow">return</span> lRet;</div>
<div class="line"><a name="l00744"></a><span class="lineno">  744</span>&#160;    }</div>
<div class="line"><a name="l00745"></a><span class="lineno">  745</span>&#160; </div>
<div class="line"><a name="l00746"></a><span class="lineno">  746</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00747"></a><span class="lineno">  747</span>&#160;<span class="comment">     * Call WH_CALLWNDPROC if it&#39;s installed and the window is not marked</span></div>
<div class="line"><a name="l00748"></a><span class="lineno">  748</span>&#160;<span class="comment">     * as destroyed.</span></div>
<div class="line"><a name="l00749"></a><span class="lineno">  749</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00750"></a><span class="lineno">  750</span>&#160;    <span class="keywordflow">if</span> (IsHooked(pti, WHF_CALLWNDPROC)) {</div>
<div class="line"><a name="l00751"></a><span class="lineno">  751</span>&#160;        <a class="code" href="a02937.html">CWPSTRUCTEX</a> cwps;</div>
<div class="line"><a name="l00752"></a><span class="lineno">  752</span>&#160; </div>
<div class="line"><a name="l00753"></a><span class="lineno">  753</span>&#160;        cwps.hwnd = HWq(pwnd);</div>
<div class="line"><a name="l00754"></a><span class="lineno">  754</span>&#160;        cwps.message = message;</div>
<div class="line"><a name="l00755"></a><span class="lineno">  755</span>&#160;        cwps.wParam = wParam;</div>
<div class="line"><a name="l00756"></a><span class="lineno">  756</span>&#160;        cwps.lParam = lParam;</div>
<div class="line"><a name="l00757"></a><span class="lineno">  757</span>&#160;        cwps.<a class="code" href="a02937.html#a2a4daf3bf234ddf89523fc62f9e0904a">psmsSender</a> = NULL;</div>
<div class="line"><a name="l00758"></a><span class="lineno">  758</span>&#160; </div>
<div class="line"><a name="l00759"></a><span class="lineno">  759</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00760"></a><span class="lineno">  760</span>&#160;<span class="comment">         * Unlike Win3.1, NT and Win95 ignore any changes the app makes</span></div>
<div class="line"><a name="l00761"></a><span class="lineno">  761</span>&#160;<span class="comment">         * to the CWPSTRUCT contents.</span></div>
<div class="line"><a name="l00762"></a><span class="lineno">  762</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160;        <a class="code" href="a00701.html#a4a596c02b66f7f049c18711b882e0b89">xxxCallHook</a>(HC_ACTION, FALSE, (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)&amp;cwps, WH_CALLWNDPROC);</div>
<div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160; </div>
<div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160;<span class="comment">         * Unlike Win3.1, NT and Win95 ignore any changes the app makes</span></div>
<div class="line"><a name="l00767"></a><span class="lineno">  767</span>&#160;<span class="comment">         * to the CWPSTRUCT contents.  If this behavior reverts to</span></div>
<div class="line"><a name="l00768"></a><span class="lineno">  768</span>&#160;<span class="comment">         * Win3.1 semantics, we will need to copy the new parameters</span></div>
<div class="line"><a name="l00769"></a><span class="lineno">  769</span>&#160;<span class="comment">         * from cwps.</span></div>
<div class="line"><a name="l00770"></a><span class="lineno">  770</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00771"></a><span class="lineno">  771</span>&#160;    }</div>
<div class="line"><a name="l00772"></a><span class="lineno">  772</span>&#160; </div>
<div class="line"><a name="l00773"></a><span class="lineno">  773</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00774"></a><span class="lineno">  774</span>&#160;<span class="comment">     * If this window&#39;s proc is meant to be executed from the server side</span></div>
<div class="line"><a name="l00775"></a><span class="lineno">  775</span>&#160;<span class="comment">     * we&#39;ll just stay inside the semaphore and call it directly.  Note</span></div>
<div class="line"><a name="l00776"></a><span class="lineno">  776</span>&#160;<span class="comment">     * how we don&#39;t convert the pwnd into an hwnd before calling the proc.</span></div>
<div class="line"><a name="l00777"></a><span class="lineno">  777</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00778"></a><span class="lineno">  778</span>&#160;    <span class="keywordflow">if</span> (TestWF(pwnd, WFSERVERSIDEPROC)) {</div>
<div class="line"><a name="l00779"></a><span class="lineno">  779</span>&#160; </div>
<div class="line"><a name="l00780"></a><span class="lineno">  780</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00781"></a><span class="lineno">  781</span>&#160;<span class="comment">         * We have a number of places where we do recursion in User.  This often goes</span></div>
<div class="line"><a name="l00782"></a><span class="lineno">  782</span>&#160;<span class="comment">         * through SendMessage (when we send a message to the parent for example) which</span></div>
<div class="line"><a name="l00783"></a><span class="lineno">  783</span>&#160;<span class="comment">         * can eat the amount of stack we have</span></div>
<div class="line"><a name="l00784"></a><span class="lineno">  784</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00785"></a><span class="lineno">  785</span>&#160;        <span class="keywordflow">if</span> (((<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)&amp;uResult - (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)KeGetCurrentThread()-&gt;StackLimit) &lt; KERNEL_STACK_MINIMUM_RESERVE) {</div>
<div class="line"><a name="l00786"></a><span class="lineno">  786</span>&#160;            <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#afa5f32de88404289ec03cd2c0e61e94f">RIP_ERROR</a>, <span class="stringliteral">&quot;SendMessage: Thread recusing in User with message %lX; failing&quot;</span>, message);</div>
<div class="line"><a name="l00787"></a><span class="lineno">  787</span>&#160;            <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00788"></a><span class="lineno">  788</span>&#160;        }</div>
<div class="line"><a name="l00789"></a><span class="lineno">  789</span>&#160; </div>
<div class="line"><a name="l00790"></a><span class="lineno">  790</span>&#160;        lRet = pwnd-&gt;<a class="code" href="a02581.html#ae7a5a1d213bfe6dce2e6eab68a2a8bb8">lpfnWndProc</a>(pwnd, message, wParam, lParam);</div>
<div class="line"><a name="l00791"></a><span class="lineno">  791</span>&#160; </div>
<div class="line"><a name="l00792"></a><span class="lineno">  792</span>&#160;        <span class="keywordflow">if</span> ( lpdwResult == NULL ) {</div>
<div class="line"><a name="l00793"></a><span class="lineno">  793</span>&#160;            <span class="keywordflow">return</span> lRet;</div>
<div class="line"><a name="l00794"></a><span class="lineno">  794</span>&#160;        } <span class="keywordflow">else</span> {      <span class="comment">/* time-out call */</span></div>
<div class="line"><a name="l00795"></a><span class="lineno">  795</span>&#160;            *lpdwResult = lRet;</div>
<div class="line"><a name="l00796"></a><span class="lineno">  796</span>&#160;            <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00797"></a><span class="lineno">  797</span>&#160;        }</div>
<div class="line"><a name="l00798"></a><span class="lineno">  798</span>&#160;    }</div>
<div class="line"><a name="l00799"></a><span class="lineno">  799</span>&#160; </div>
<div class="line"><a name="l00800"></a><span class="lineno">  800</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00801"></a><span class="lineno">  801</span>&#160;<span class="comment">     * If the window has a client side worker proc and has</span></div>
<div class="line"><a name="l00802"></a><span class="lineno">  802</span>&#160;<span class="comment">     * not been subclassed, dispatch the message directly</span></div>
<div class="line"><a name="l00803"></a><span class="lineno">  803</span>&#160;<span class="comment">     * to the worker proc.  Otherwise, dispatch it normally.</span></div>
<div class="line"><a name="l00804"></a><span class="lineno">  804</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160;    pcls = pwnd-&gt;<a class="code" href="a02581.html#a9ac6b15978318e3401ef9a878ccb40ac">pcls</a>;</div>
<div class="line"><a name="l00806"></a><span class="lineno">  806</span>&#160;    dwSCMSFlags = TestWF(pwnd, WFANSIPROC) ? SCMS_FLAGS_ANSI : 0;</div>
<div class="line"><a name="l00807"></a><span class="lineno">  807</span>&#160;    <span class="keywordflow">if</span> (pcls-&gt;<a class="code" href="a02569.html#abf7087f027fa856753b00194fa491d18">lpfnWorker</a> &amp;&amp;</div>
<div class="line"><a name="l00808"></a><span class="lineno">  808</span>&#160;        ((<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)pwnd-&gt;<a class="code" href="a02581.html#ae7a5a1d213bfe6dce2e6eab68a2a8bb8">lpfnWndProc</a> == FNID_TO_CLIENT_PFNW(pcls-&gt;<a class="code" href="a02569.html#aa186be7fc47d6ee190a1fd364459a743">fnid</a>) ||</div>
<div class="line"><a name="l00809"></a><span class="lineno">  809</span>&#160;         (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)pwnd-&gt;<a class="code" href="a02581.html#ae7a5a1d213bfe6dce2e6eab68a2a8bb8">lpfnWndProc</a> == FNID_TO_CLIENT_PFNA(pcls-&gt;<a class="code" href="a02569.html#aa186be7fc47d6ee190a1fd364459a743">fnid</a>))) {</div>
<div class="line"><a name="l00810"></a><span class="lineno">  810</span>&#160;        <a class="code" href="a02517.html">PWNDMSG</a> pwm = &amp;<a class="code" href="a00020.html#ac02f0141c423acd033ecdd2a757a3cc1">gSharedInfo</a>.<a class="code" href="a02521.html#a7e26cfe7a314d23f30409cf4dcb86b82">awmControl</a>[pcls-&gt;<a class="code" href="a02569.html#aa186be7fc47d6ee190a1fd364459a743">fnid</a> - FNID_START];</div>
<div class="line"><a name="l00811"></a><span class="lineno">  811</span>&#160; </div>
<div class="line"><a name="l00812"></a><span class="lineno">  812</span>&#160;        <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(pcls-&gt;<a class="code" href="a02569.html#aa186be7fc47d6ee190a1fd364459a743">fnid</a> &gt;= FNID_START &amp;&amp; pcls-&gt;<a class="code" href="a02569.html#aa186be7fc47d6ee190a1fd364459a743">fnid</a> &lt;= FNID_END);</div>
<div class="line"><a name="l00813"></a><span class="lineno">  813</span>&#160; </div>
<div class="line"><a name="l00814"></a><span class="lineno">  814</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00815"></a><span class="lineno">  815</span>&#160;<span class="comment">         * If this message is not processed by the control, call</span></div>
<div class="line"><a name="l00816"></a><span class="lineno">  816</span>&#160;<span class="comment">         * xxxDefWindowProc</span></div>
<div class="line"><a name="l00817"></a><span class="lineno">  817</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00818"></a><span class="lineno">  818</span>&#160;        <span class="keywordflow">if</span> (pwm-&gt;<a class="code" href="a02517.html#a2d6495c3cf7fb3fbdd27638ad3de548e">abMsgs</a> &amp;&amp; ((message &gt; pwm-&gt;<a class="code" href="a02517.html#a42d641821b5c3c8a4f9dd0328dabfc8a">maxMsgs</a>) ||</div>
<div class="line"><a name="l00819"></a><span class="lineno">  819</span>&#160;                !((pwm-&gt;<a class="code" href="a02517.html#a2d6495c3cf7fb3fbdd27638ad3de548e">abMsgs</a>)[message / 8] &amp; (1 &lt;&lt; (message &amp; 7))))) {</div>
<div class="line"><a name="l00820"></a><span class="lineno">  820</span>&#160; </div>
<div class="line"><a name="l00821"></a><span class="lineno">  821</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00822"></a><span class="lineno">  822</span>&#160;<span class="comment">             * Special case dialogs so that we can ignore unimportant</span></div>
<div class="line"><a name="l00823"></a><span class="lineno">  823</span>&#160;<span class="comment">             * messages during dialog creation.</span></div>
<div class="line"><a name="l00824"></a><span class="lineno">  824</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00825"></a><span class="lineno">  825</span>&#160;            <span class="keywordflow">if</span> (pcls-&gt;<a class="code" href="a02569.html#aa186be7fc47d6ee190a1fd364459a743">fnid</a> == FNID_DIALOG &amp;&amp;</div>
<div class="line"><a name="l00826"></a><span class="lineno">  826</span>&#160;                    <a class="code" href="a02641.html">PDLG</a>(pwnd) &amp;&amp;</div>
<div class="line"><a name="l00827"></a><span class="lineno">  827</span>&#160;                    <a class="code" href="a00365.html#aaad45088258144a066fcea47a43bb325">PDLG</a>(pwnd)-&gt;lpfnDlg != NULL)</div>
<div class="line"><a name="l00828"></a><span class="lineno">  828</span>&#160;                lRet = ScSendMessage(pwnd, message, wParam, lParam,</div>
<div class="line"><a name="l00829"></a><span class="lineno">  829</span>&#160;                        dwSCMSFlags, pcls-&gt;<a class="code" href="a02569.html#abf7087f027fa856753b00194fa491d18">lpfnWorker</a>, dwSCMSFlags);</div>
<div class="line"><a name="l00830"></a><span class="lineno">  830</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00831"></a><span class="lineno">  831</span>&#160;                lRet = <a class="code" href="a00671.html#af0a7cefc146c51b12208e692b0f67960">xxxDefWindowProc</a>(pwnd, message, wParam, lParam);</div>
<div class="line"><a name="l00832"></a><span class="lineno">  832</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00833"></a><span class="lineno">  833</span>&#160;            lRet = ScSendMessage(pwnd, message, wParam, lParam,</div>
<div class="line"><a name="l00834"></a><span class="lineno">  834</span>&#160;                    dwSCMSFlags, pcls-&gt;<a class="code" href="a02569.html#abf7087f027fa856753b00194fa491d18">lpfnWorker</a>, dwSCMSFlags);</div>
<div class="line"><a name="l00835"></a><span class="lineno">  835</span>&#160;        }</div>
<div class="line"><a name="l00836"></a><span class="lineno">  836</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00837"></a><span class="lineno">  837</span>&#160;        lRet = ScSendMessage(pwnd, message, wParam, lParam,</div>
<div class="line"><a name="l00838"></a><span class="lineno">  838</span>&#160;                (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)pwnd-&gt;<a class="code" href="a02581.html#ae7a5a1d213bfe6dce2e6eab68a2a8bb8">lpfnWndProc</a>,</div>
<div class="line"><a name="l00839"></a><span class="lineno">  839</span>&#160;                <a class="code" href="a00020.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="code" href="a02513.html#a6f4de7f11f44318feef70149fa2d31cc">apfnClientW</a>.<a class="code" href="a02501.html#aa8d047fb3797fd6b520383ee297357bf">pfnDispatchMessage</a>, dwSCMSFlags);</div>
<div class="line"><a name="l00840"></a><span class="lineno">  840</span>&#160;    }</div>
<div class="line"><a name="l00841"></a><span class="lineno">  841</span>&#160; </div>
<div class="line"><a name="l00842"></a><span class="lineno">  842</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00843"></a><span class="lineno">  843</span>&#160;<span class="comment">     * Call WH_CALLWNDPROCRET if it&#39;s installed.</span></div>
<div class="line"><a name="l00844"></a><span class="lineno">  844</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00845"></a><span class="lineno">  845</span>&#160;    <span class="keywordflow">if</span> (IsHooked(pti, WHF_CALLWNDPROCRET)) {</div>
<div class="line"><a name="l00846"></a><span class="lineno">  846</span>&#160;        <a class="code" href="a02941.html">CWPRETSTRUCTEX</a> cwps;</div>
<div class="line"><a name="l00847"></a><span class="lineno">  847</span>&#160; </div>
<div class="line"><a name="l00848"></a><span class="lineno">  848</span>&#160;        cwps.hwnd = HWq(pwnd);</div>
<div class="line"><a name="l00849"></a><span class="lineno">  849</span>&#160;        cwps.message = message;</div>
<div class="line"><a name="l00850"></a><span class="lineno">  850</span>&#160;        cwps.wParam = wParam;</div>
<div class="line"><a name="l00851"></a><span class="lineno">  851</span>&#160;        cwps.lParam = lParam;</div>
<div class="line"><a name="l00852"></a><span class="lineno">  852</span>&#160;        cwps.<a class="code" href="a02941.html#a33e2687b8b26e3e485b2584c10e324bd">lResult</a> = lRet;</div>
<div class="line"><a name="l00853"></a><span class="lineno">  853</span>&#160;        cwps.<a class="code" href="a02941.html#a2a4daf3bf234ddf89523fc62f9e0904a">psmsSender</a> = NULL;</div>
<div class="line"><a name="l00854"></a><span class="lineno">  854</span>&#160; </div>
<div class="line"><a name="l00855"></a><span class="lineno">  855</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00856"></a><span class="lineno">  856</span>&#160;<span class="comment">         * Unlike Win3.1, NT and Win95 ignore any changes the app makes</span></div>
<div class="line"><a name="l00857"></a><span class="lineno">  857</span>&#160;<span class="comment">         * to the CWPSTRUCT contents.</span></div>
<div class="line"><a name="l00858"></a><span class="lineno">  858</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00859"></a><span class="lineno">  859</span>&#160;        <a class="code" href="a00701.html#a4a596c02b66f7f049c18711b882e0b89">xxxCallHook</a>(HC_ACTION, FALSE, (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)&amp;cwps, WH_CALLWNDPROCRET);</div>
<div class="line"><a name="l00860"></a><span class="lineno">  860</span>&#160; </div>
<div class="line"><a name="l00861"></a><span class="lineno">  861</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00862"></a><span class="lineno">  862</span>&#160;<span class="comment">         * Unlike Win3.1, NT and Win95 ignore any changes the app makes</span></div>
<div class="line"><a name="l00863"></a><span class="lineno">  863</span>&#160;<span class="comment">         * to the CWPSTRUCT contents.  If this behavior reverts to</span></div>
<div class="line"><a name="l00864"></a><span class="lineno">  864</span>&#160;<span class="comment">         * Win3.1 semantics, we will need to copy the new parameters</span></div>
<div class="line"><a name="l00865"></a><span class="lineno">  865</span>&#160;<span class="comment">         * from cwps.</span></div>
<div class="line"><a name="l00866"></a><span class="lineno">  866</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00867"></a><span class="lineno">  867</span>&#160;    }</div>
<div class="line"><a name="l00868"></a><span class="lineno">  868</span>&#160; </div>
<div class="line"><a name="l00869"></a><span class="lineno">  869</span>&#160;    <span class="keywordflow">if</span> ( lpdwResult != NULL ) {     <span class="comment">/* time-out call */</span></div>
<div class="line"><a name="l00870"></a><span class="lineno">  870</span>&#160;        *lpdwResult = lRet;</div>
<div class="line"><a name="l00871"></a><span class="lineno">  871</span>&#160;        <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00872"></a><span class="lineno">  872</span>&#160;    }</div>
<div class="line"><a name="l00873"></a><span class="lineno">  873</span>&#160; </div>
<div class="line"><a name="l00874"></a><span class="lineno">  874</span>&#160;    <span class="keywordflow">return</span> lRet;</div>
<div class="line"><a name="l00875"></a><span class="lineno">  875</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00365_source.html#l01055">_WNDMSG::abMsgs</a>, <a class="el" href="a00365_source.html#l00966">tagSERVERINFO::apfnClientW</a>, <a class="el" href="a00365_source.html#l01068">tagSHAREDINFO::awmControl</a>, <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00707_source.html#l00130">FHungApp()</a>, <a class="el" href="a00365_source.html#l01327">tagCLS::fnid</a>, <a class="el" href="a00899_source.html#l02640">tagINTERSENDMSGEX::fuCall</a>, <a class="el" href="a00899_source.html#l02699">tagBROADCASTMSG::fuFlags</a>, <a class="el" href="a00899_source.html#l02646">tagINTERSENDMSGEX::fuSend</a>, <a class="el" href="a00020_source.html#l00039">gpsi</a>, <a class="el" href="a00020_source.html#l00040">gSharedInfo</a>, <a class="el" href="a03257_source.html#l00279">guDdeSendTimeout</a>, <a class="el" href="a00899_source.html#l02648">tagINTERSENDMSGEX::lpdwResult</a>, <a class="el" href="a00899_source.html#l02701">tagBROADCASTMSG::lpdwResult</a>, <a class="el" href="a00365_source.html#l01401">tagWND::lpfnWndProc</a>, <a class="el" href="a00365_source.html#l01349">tagCLS::lpfnWorker</a>, <a class="el" href="a00899_source.html#l02585">_CWPRETSTRUCTEX::lResult</a>, <a class="el" href="a00365_source.html#l01054">_WNDMSG::maxMsgs</a>, <a class="el" href="a00365_source.html#l01403">tagWND::pcls</a>, <a class="el" href="a00365_source.html#l00752">_PFNCLIENT::pfnDispatchMessage</a>, <a class="el" href="a00899_source.html#l02581">_CWPSTRUCTEX::psmsSender</a>, <a class="el" href="a00899_source.html#l02587">_CWPRETSTRUCTEX::psmsSender</a>, <a class="el" href="a00263_source.html#l00526">PtiCurrent()</a>, <a class="el" href="a00371_source.html#l00028">RIP_ERROR</a>, <a class="el" href="a00371_source.html#l00132">RIPMSG1</a>, <a class="el" href="a02961.html#a668dc7e9008960bc451044e1ea615c38">tagBROADCASTMSG::to</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>, <a class="el" href="a00950_source.html#l00117">UserAssert</a>, <a class="el" href="a00899_source.html#l02647">tagINTERSENDMSGEX::uTimeout</a>, <a class="el" href="a00899_source.html#l02700">tagBROADCASTMSG::uTimeout</a>, <a class="el" href="a00842_source.html#l02898">xxxBroadcastMessage()</a>, <a class="el" href="a00701_source.html#l00954">xxxCallHook()</a>, <a class="el" href="a03188_source.html#l00157">xxxDDETrackSendHook()</a>, <a class="el" href="a00671_source.html#l01146">xxxDefWindowProc()</a> , 以及 <a class="el" href="a00842_source.html#l01235">xxxInterSendMsgEx()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00842_source.html#l02898">xxxBroadcastMessage()</a>, <a class="el" href="a00614_source.html#l00216">xxxGetWindowSmIcon()</a>, <a class="el" href="a00890_source.html#l01622">xxxNextWindow()</a>, <a class="el" href="a00659_source.html#l00224">xxxQueryDropObject()</a>, <a class="el" href="a00842_source.html#l00320">xxxSendBSMtoDesktop()</a>, <a class="el" href="a00632_source.html#l00725">xxxSendClipboardMessage()</a>, <a class="el" href="a00842_source.html#l00613">xxxSendMessage()</a>, <a class="el" href="a00842_source.html#l00533">xxxSendMessageEx()</a>, <a class="el" href="a00842_source.html#l00480">xxxSendMessageFF()</a>, <a class="el" href="a00827_source.html#l02756">xxxSendMinRectMessages()</a>, <a class="el" href="a00827_source.html#l01195">xxxSystemParametersInfo()</a> , 以及 <a class="el" href="a03665_source.html#l00633">xxxWrapSendMessage()</a>.</p>

</div>
</div>
<a id="a0035e456f12ef530c2b674cd1f6f8b36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0035e456f12ef530c2b674cd1f6f8b36">&#9670;&nbsp;</a></span>xxxSendNotifyMessage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL xxxSendNotifyMessage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>wParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>lParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l00968">968</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00973"></a><span class="lineno">  973</span>&#160;{</div>
<div class="line"><a name="l00974"></a><span class="lineno">  974</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00975"></a><span class="lineno">  975</span>&#160;<span class="comment">     * If this is a broadcast of one of the system</span></div>
<div class="line"><a name="l00976"></a><span class="lineno">  976</span>&#160;<span class="comment">     * notification messages,  send it to all top-level</span></div>
<div class="line"><a name="l00977"></a><span class="lineno">  977</span>&#160;<span class="comment">     * windows in the system.</span></div>
<div class="line"><a name="l00978"></a><span class="lineno">  978</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00979"></a><span class="lineno">  979</span>&#160;    <span class="keywordflow">if</span> (pwnd == (<a class="code" href="a02581.html">PWND</a>)-1) {</div>
<div class="line"><a name="l00980"></a><span class="lineno">  980</span>&#160;        <span class="keywordflow">switch</span> (message) {</div>
<div class="line"><a name="l00981"></a><span class="lineno">  981</span>&#160;        <span class="keywordflow">case</span> WM_WININICHANGE:</div>
<div class="line"><a name="l00982"></a><span class="lineno">  982</span>&#160;        <span class="keywordflow">case</span> WM_DEVMODECHANGE:</div>
<div class="line"><a name="l00983"></a><span class="lineno">  983</span>&#160;        <span class="keywordflow">case</span> WM_SPOOLERSTATUS:</div>
<div class="line"><a name="l00984"></a><span class="lineno">  984</span>&#160;            <a class="code" href="a00842.html#ac6cbd728d486a3a91e1b5d3181ab07aa">xxxSystemBroadcastMessage</a>(message, wParam, lParam,</div>
<div class="line"><a name="l00985"></a><span class="lineno">  985</span>&#160;                    BMSG_SENDNOTIFYMSG, NULL);</div>
<div class="line"><a name="l00986"></a><span class="lineno">  986</span>&#160;            <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00987"></a><span class="lineno">  987</span>&#160; </div>
<div class="line"><a name="l00988"></a><span class="lineno">  988</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00989"></a><span class="lineno">  989</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00990"></a><span class="lineno">  990</span>&#160;        }</div>
<div class="line"><a name="l00991"></a><span class="lineno">  991</span>&#160;    }</div>
<div class="line"><a name="l00992"></a><span class="lineno">  992</span>&#160; </div>
<div class="line"><a name="l00993"></a><span class="lineno">  993</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00842.html#acfe6f35d8e62e08d08e52a221f643c9d">xxxSendMessageCallback</a>( pwnd, message, wParam, lParam,</div>
<div class="line"><a name="l00994"></a><span class="lineno">  994</span>&#160;            NULL, 0L, 0 );</div>
<div class="line"><a name="l00995"></a><span class="lineno">  995</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00842_source.html#l01013">xxxSendMessageCallback()</a> , 以及 <a class="el" href="a00842_source.html#l00919">xxxSystemBroadcastMessage()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00689_source.html#l00075">FullScreenCleanup()</a>, <a class="el" href="a03614_source.html#l04302">NtUserSendNotifyMessage()</a>, <a class="el" href="a00686_source.html#l00430">xxxActivateThisWindow()</a>, <a class="el" href="a00842_source.html#l02898">xxxBroadcastMessage()</a>, <a class="el" href="a00656_source.html#l00499">xxxDesktopWndProc()</a>, <a class="el" href="a00635_source.html#l01273">xxxDestroyWindow()</a>, <a class="el" href="a00632_source.html#l00202">xxxDrawClipboard()</a>, <a class="el" href="a00815_source.html#l00237">xxxFlushPalette()</a>, <a class="el" href="a00785_source.html#l00466">xxxMNLoop()</a>, <a class="el" href="a00890_source.html#l01622">xxxNextWindow()</a>, <a class="el" href="a00890_source.html#l02004">xxxOldNextWindow()</a>, <a class="el" href="a00815_source.html#l00147">xxxRealizePalette()</a>, <a class="el" href="a00632_source.html#l00725">xxxSendClipboardMessage()</a>, <a class="el" href="a00791_source.html#l00031">xxxSendMenuSelect()</a>, <a class="el" href="a00656_source.html#l00738">xxxSetDeskPattern()</a>, <a class="el" href="a00668_source.html#l01094">xxxSetDeskWallpaper()</a> , 以及 <a class="el" href="a00878_source.html#l00191">xxxSetSysColors()</a>.</p>

</div>
</div>
<a id="a34b6961ce98c8a0a762e5aa8eb05f2bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a34b6961ce98c8a0a762e5aa8eb05f2bb">&#9670;&nbsp;</a></span>xxxSendSizeMessage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxSendSizeMessage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>cmdSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l02822">2822</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02825"></a><span class="lineno"> 2825</span>&#160;{</div>
<div class="line"><a name="l02826"></a><span class="lineno"> 2826</span>&#160;    RECT rc;</div>
<div class="line"><a name="l02827"></a><span class="lineno"> 2827</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(pwnd);</div>
<div class="line"><a name="l02828"></a><span class="lineno"> 2828</span>&#160; </div>
<div class="line"><a name="l02829"></a><span class="lineno"> 2829</span>&#160;    <span class="comment">// Added by Chicago: HACK ALERT:</span></div>
<div class="line"><a name="l02830"></a><span class="lineno"> 2830</span>&#160;    <span class="comment">// If the window is minimized then the real client width and height are</span></div>
<div class="line"><a name="l02831"></a><span class="lineno"> 2831</span>&#160;    <span class="comment">// zero. But, in win3.1 they were non-zero. Under Chicago, PrintShop</span></div>
<div class="line"><a name="l02832"></a><span class="lineno"> 2832</span>&#160;    <span class="comment">// Deluxe ver 1.2 hits a divide by zero. To fix this we fake the width</span></div>
<div class="line"><a name="l02833"></a><span class="lineno"> 2833</span>&#160;    <span class="comment">// and height for old apps to be non-zero values.</span></div>
<div class="line"><a name="l02834"></a><span class="lineno"> 2834</span>&#160;    <span class="comment">// GetClientRect does that job for us.</span></div>
<div class="line"><a name="l02835"></a><span class="lineno"> 2835</span>&#160;    <a class="code" href="a00365.html#a373eb8782e10ebad75e466db8d01ebe0">_GetClientRect</a>(pwnd, &amp;rc);</div>
<div class="line"><a name="l02836"></a><span class="lineno"> 2836</span>&#160; </div>
<div class="line"><a name="l02837"></a><span class="lineno"> 2837</span>&#160;    <a class="code" href="a00842.html#a69cf2e14dcefd941469ad5126e40f79a">xxxSendMessage</a>(pwnd, WM_SIZE, cmdSize,</div>
<div class="line"><a name="l02838"></a><span class="lineno"> 2838</span>&#160;            MAKELONG(rc.right - rc.left, rc.bottom - rc.top));</div>
<div class="line"><a name="l02839"></a><span class="lineno"> 2839</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03752_source.html#l00745">_GetClientRect()</a>, <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a> , 以及 <a class="el" href="a00842_source.html#l00613">xxxSendMessage()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00635_source.html#l00031">xxxCreateWindowExWOW()</a>, <a class="el" href="a00872_source.html#l02854">xxxHandleWindowPosChanged()</a> , 以及 <a class="el" href="a00851_source.html#l00081">xxxShowWindow()</a>.</p>

</div>
</div>
<a id="ac6cbd728d486a3a91e1b5d3181ab07aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac6cbd728d486a3a91e1b5d3181ab07aa">&#9670;&nbsp;</a></span>xxxSystemBroadcastMessage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID xxxSystemBroadcastMessage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>wParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>lParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>wCmd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00899.html#a16be71707541ebaec57302d4bdc19b2a">PBROADCASTMSG</a>&#160;</td>
          <td class="paramname"><em>pbcm</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l00919">919</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00925"></a><span class="lineno">  925</span>&#160;{</div>
<div class="line"><a name="l00926"></a><span class="lineno">  926</span>&#160;    <a class="code" href="a02889.html">PTHREADINFO</a> pti = <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>();</div>
<div class="line"><a name="l00927"></a><span class="lineno">  927</span>&#160;    <a class="code" href="a02809.html">PWINDOWSTATION</a> pwinsta;</div>
<div class="line"><a name="l00928"></a><span class="lineno">  928</span>&#160;    <a class="code" href="a02801.html">PDESKTOP</a> pdesk;</div>
<div class="line"><a name="l00929"></a><span class="lineno">  929</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpwinsta;</div>
<div class="line"><a name="l00930"></a><span class="lineno">  930</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpdesk;</div>
<div class="line"><a name="l00931"></a><span class="lineno">  931</span>&#160; </div>
<div class="line"><a name="l00932"></a><span class="lineno">  932</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00933"></a><span class="lineno">  933</span>&#160;<span class="comment">     * Walk through all windowstations and desktop looking for</span></div>
<div class="line"><a name="l00934"></a><span class="lineno">  934</span>&#160;<span class="comment">     * top-level windows.</span></div>
<div class="line"><a name="l00935"></a><span class="lineno">  935</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00936"></a><span class="lineno">  936</span>&#160;    <span class="keywordflow">for</span> (pwinsta = <a class="code" href="a03257.html#ad9f551216ba73947832de96844110fca">grpwinstaList</a>; pwinsta != NULL; ) {</div>
<div class="line"><a name="l00937"></a><span class="lineno">  937</span>&#160;        ThreadLockWinSta(pti, pwinsta, &amp;tlpwinsta);</div>
<div class="line"><a name="l00938"></a><span class="lineno">  938</span>&#160;        <span class="keywordflow">for</span> (pdesk = pwinsta-&gt;<a class="code" href="a02809.html#aafbda282c78d875d4491cf817366dc1b">rpdeskList</a>; pdesk != NULL; ) {</div>
<div class="line"><a name="l00939"></a><span class="lineno">  939</span>&#160;            ThreadLockDesktop(pti, pdesk, &amp;tlpdesk);</div>
<div class="line"><a name="l00940"></a><span class="lineno">  940</span>&#160;            <a class="code" href="a00842.html#adb5204decd255d5005372b2c12890113">xxxBroadcastMessage</a>(pdesk-&gt;<a class="code" href="a02801.html#a76d4881aa4c15330103e83a80e6b5dc7">pDeskInfo</a>-&gt;<a class="code" href="a02609.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, message, wParam, lParam,</div>
<div class="line"><a name="l00941"></a><span class="lineno">  941</span>&#160;                    wCmd, pbcm);</div>
<div class="line"><a name="l00942"></a><span class="lineno">  942</span>&#160;            pdesk = pdesk-&gt;<a class="code" href="a02801.html#ace92d08d0736aef3f0b73273a6e3e5f7">rpdeskNext</a>;</div>
<div class="line"><a name="l00943"></a><span class="lineno">  943</span>&#160;            ThreadUnlockDesktop(pti, &amp;tlpdesk);</div>
<div class="line"><a name="l00944"></a><span class="lineno">  944</span>&#160;        }</div>
<div class="line"><a name="l00945"></a><span class="lineno">  945</span>&#160;        pwinsta = pwinsta-&gt;<a class="code" href="a02809.html#acdccfdf2387c6fcf147bba1ee15d5939">rpwinstaNext</a>;</div>
<div class="line"><a name="l00946"></a><span class="lineno">  946</span>&#160;        ThreadUnlockWinSta(pti, &amp;tlpwinsta);</div>
<div class="line"><a name="l00947"></a><span class="lineno">  947</span>&#160;    }</div>
<div class="line"><a name="l00948"></a><span class="lineno">  948</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03257_source.html#l00182">grpwinstaList</a>, <a class="el" href="a00899_source.html#l01706">tagDESKTOP::pDeskInfo</a>, <a class="el" href="a00263_source.html#l00526">PtiCurrent()</a>, <a class="el" href="a00899_source.html#l01746">tagWINDOWSTATION::rpdeskList</a>, <a class="el" href="a00899_source.html#l01709">tagDESKTOP::rpdeskNext</a>, <a class="el" href="a00899_source.html#l01745">tagWINDOWSTATION::rpwinstaNext</a>, <a class="el" href="a00365_source.html#l01603">tagDESKTOPINFO::spwnd</a> , 以及 <a class="el" href="a00842_source.html#l02898">xxxBroadcastMessage()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00842_source.html#l02898">xxxBroadcastMessage()</a> , 以及 <a class="el" href="a00842_source.html#l00968">xxxSendNotifyMessage()</a>.</p>

</div>
</div>
<h2 class="groupheader">变量说明</h2>
<a id="a515921616ee307c5862eb0be3a8e7c1e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a515921616ee307c5862eb0be3a8e7c1e">&#9670;&nbsp;</a></span>psTcb</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PRIVILEGE_SET psTcb</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00839_source.html">security.c</a> 第 <a class="el" href="a00839_source.html#l00022">22</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00842_source.html#l00407">xxxSendMessageBSM()</a>.</p>

</div>
</div>
<a id="aa9f7698b1d1cb8fb92adb2ff6b17effd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9f7698b1d1cb8fb92adb2ff6b17effd">&#9670;&nbsp;</a></span>SMSLookasideBase</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PVOID SMSLookasideBase</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l00028">28</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00842_source.html#l00193">FreeSMS()</a> , 以及 <a class="el" href="a00842_source.html#l00119">InitSMSLookaside()</a>.</p>

</div>
</div>
<a id="ac66681a8eebdc06117bf079d61c126f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac66681a8eebdc06117bf079d61c126f3">&#9670;&nbsp;</a></span>SMSLookasideBounds</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PVOID SMSLookasideBounds</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l00029">29</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00842_source.html#l00193">FreeSMS()</a> , 以及 <a class="el" href="a00842_source.html#l00119">InitSMSLookaside()</a>.</p>

</div>
</div>
<a id="a15aab9f699bba774ac7bd51128484cb9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15aab9f699bba774ac7bd51128484cb9">&#9670;&nbsp;</a></span>SMSLookasideZone</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ZONE_HEADER SMSLookasideZone</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00842_source.html">sendmsg.c</a> 第 <a class="el" href="a00842_source.html#l00030">30</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00842_source.html#l00150">AllocSMS()</a>, <a class="el" href="a00842_source.html#l00193">FreeSMS()</a> , 以及 <a class="el" href="a00842_source.html#l00119">InitSMSLookaside()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aa02641_html"><div class="ttname"><a href="a02641.html">_DLG</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02146">user.h:2146</a></div></div>
<div class="ttc" id="aa02649_html_a1fc053b04d0e037452d1efb7426bd89c"><div class="ttname"><a href="a02649.html#a1fc053b04d0e037452d1efb7426bd89c">tagCLIENTTHREADINFO::fsWakeBits</a></div><div class="ttdeci">WORD fsWakeBits</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02218">user.h:2218</a></div></div>
<div class="ttc" id="aa00365_html_aef5c4640c12a587d786e975951141387"><div class="ttname"><a href="a00365.html#aef5c4640c12a587d786e975951141387">LPBROADCASTSYSTEMMSGPARAMS</a></div><div class="ttdeci">struct BROADCASTSYSTEMMSGPARAMS * LPBROADCASTSYSTEMMSGPARAMS</div></div>
<div class="ttc" id="aa02889_html_ae8b869ec5b101646649020f5b0fd5d0d"><div class="ttname"><a href="a02889.html#ae8b869ec5b101646649020f5b0fd5d0d">tagTHREADINFO::TIF_flags</a></div><div class="ttdeci">DWORD TIF_flags</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02294">userk.h:2294</a></div></div>
<div class="ttc" id="aa02945_html_af1f37780572110e7cedfd3b27e4c6653"><div class="ttname"><a href="a02945.html#af1f37780572110e7cedfd3b27e4c6653">tagSMS::ptiCallBackSender</a></div><div class="ttdeci">PTHREADINFO ptiCallBackSender</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02606">userk.h:2606</a></div></div>
<div class="ttc" id="aa00842_html_a0035e456f12ef530c2b674cd1f6f8b36"><div class="ttname"><a href="a00842.html#a0035e456f12ef530c2b674cd1f6f8b36">xxxSendNotifyMessage</a></div><div class="ttdeci">BOOL xxxSendNotifyMessage(PWND pwnd, UINT message, DWORD wParam, LONG lParam)</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l00968">sendmsg.c:968</a></div></div>
<div class="ttc" id="aa02941_html"><div class="ttname"><a href="a02941.html">_CWPRETSTRUCTEX</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02584">userk.h:2584</a></div></div>
<div class="ttc" id="aa00842_html_a99ccc0ce31a8cf1beac5585a408d64ff"><div class="ttname"><a href="a00842.html#a99ccc0ce31a8cf1beac5585a408d64ff">fBroadcastProc</a></div><div class="ttdeci">#define fBroadcastProc(pwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l00105">sendmsg.c:105</a></div></div>
<div class="ttc" id="aa00371_html_a01c4659626880ba56745765a3580a36b"><div class="ttname"><a href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a></div><div class="ttdeci">#define RIPMSG0(flags, szFmt)</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00131">winerrp.h:131</a></div></div>
<div class="ttc" id="aa00899_html_aafb0cfe8c268c1163a46d51fbeffc59e"><div class="ttname"><a href="a00899.html#aafb0cfe8c268c1163a46d51fbeffc59e">PHOOKMSGSTRUCT</a></div><div class="ttdeci">struct tagHOOKMSGSTRUCT * PHOOKMSGSTRUCT</div></div>
<div class="ttc" id="aa00881_html_ae11878514dabd4ba1a2c58dd2bcf2d4d"><div class="ttname"><a href="a00881.html#ae11878514dabd4ba1a2c58dd2bcf2d4d">xxxSleepTask</a></div><div class="ttdeci">BOOL xxxSleepTask(BOOL fInputIdle, HANDLE hEvent)</div><div class="ttdef"><b>Definition:</b> <a href="a00881_source.html#l00234">taskman.c:234</a></div></div>
<div class="ttc" id="aa02581_html_a9e4b9545017c505ebd9b8808bd470ab9"><div class="ttname"><a href="a02581.html#a9e4b9545017c505ebd9b8808bd470ab9">tagWND::spwndOwner</a></div><div class="ttdeci">struct tagWND * spwndOwner</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01394">user.h:1394</a></div></div>
<div class="ttc" id="aa00842_html_a15aab9f699bba774ac7bd51128484cb9"><div class="ttname"><a href="a00842.html#a15aab9f699bba774ac7bd51128484cb9">SMSLookasideZone</a></div><div class="ttdeci">ZONE_HEADER SMSLookasideZone</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l00030">sendmsg.c:30</a></div></div>
<div class="ttc" id="aa02809_html_acdccfdf2387c6fcf147bba1ee15d5939"><div class="ttname"><a href="a02809.html#acdccfdf2387c6fcf147bba1ee15d5939">tagWINDOWSTATION::rpwinstaNext</a></div><div class="ttdeci">struct tagWINDOWSTATION * rpwinstaNext</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01745">userk.h:1745</a></div></div>
<div class="ttc" id="aa00365_html_adfebdcc6d871e486d1060db7f2bcb0d4"><div class="ttname"><a href="a00365.html#adfebdcc6d871e486d1060db7f2bcb0d4">strncpycch</a></div><div class="ttdeci">DWORD strncpycch(LPSTR pszDest, LPCSTR pszSrc, DWORD cch)</div><div class="ttdef"><b>Definition:</b> <a href="a03650_source.html#l00184">rtl/random.c:184</a></div></div>
<div class="ttc" id="aa02957_html_a3f2e77d2d2e1bf5f78badcb79a56ea9e"><div class="ttname"><a href="a02957.html#a3f2e77d2d2e1bf5f78badcb79a56ea9e">tagHOOKMSGSTRUCT::phk</a></div><div class="ttdeci">PHOOK phk</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02674">userk.h:2674</a></div></div>
<div class="ttc" id="aa00842_html_a8b19ebf797f2258df34176289fee16ff"><div class="ttname"><a href="a00842.html#a8b19ebf797f2258df34176289fee16ff">IsAnsiString</a></div><div class="ttdeci">#define IsAnsiString</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l01232">sendmsg.c:1232</a></div></div>
<div class="ttc" id="aa02949_html_ae107724d62987d10ec9c8956bd404195"><div class="ttname"><a href="a02949.html#ae107724d62987d10ec9c8956bd404195">tagINTERSENDMSGEX::uTimeout</a></div><div class="ttdeci">UINT uTimeout</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02647">userk.h:2647</a></div></div>
<div class="ttc" id="aa02581_html_a9ac6b15978318e3401ef9a878ccb40ac"><div class="ttname"><a href="a02581.html#a9ac6b15978318e3401ef9a878ccb40ac">tagWND::pcls</a></div><div class="ttdeci">PCLS pcls</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01403">user.h:1403</a></div></div>
<div class="ttc" id="aa00824_html_a7a7fb081b27165c43974d89be67bbad8"><div class="ttname"><a href="a00824.html#a7a7fb081b27165c43974d89be67bbad8">SetWakeBit</a></div><div class="ttdeci">VOID SetWakeBit(PTHREADINFO pti, UINT wWakeBit)</div><div class="ttdef"><b>Definition:</b> <a href="a00824_source.html#l03276">queue.c:3276</a></div></div>
<div class="ttc" id="aa02953_html"><div class="ttname"><a href="a02953.html">tagASYNCSENDMSG</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02660">userk.h:2660</a></div></div>
<div class="ttc" id="aa02957_html_a5e6806726c901bac1a235d0caf8deb96"><div class="ttname"><a href="a02957.html#a5e6806726c901bac1a235d0caf8deb96">tagHOOKMSGSTRUCT::lParam</a></div><div class="ttdeci">DWORD lParam</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02676">userk.h:2676</a></div></div>
<div class="ttc" id="aa02941_html_a33e2687b8b26e3e485b2584c10e324bd"><div class="ttname"><a href="a02941.html#a33e2687b8b26e3e485b2584c10e324bd">_CWPRETSTRUCTEX::lResult</a></div><div class="ttdeci">LRESULT lResult</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02585">userk.h:2585</a></div></div>
<div class="ttc" id="aa02933_html_a96f916133057e9d37f61758241576801"><div class="ttname"><a href="a02933.html#a96f916133057e9d37f61758241576801">_MDICREATESTRUCTEX::strTitle</a></div><div class="ttdeci">UNICODE_STRING strTitle</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02575">userk.h:2575</a></div></div>
<div class="ttc" id="aa02449_html_ad355c4270a8465c419a47e3e68098cf1"><div class="ttname"><a href="a02449.html#ad355c4270a8465c419a47e3e68098cf1">_LARGE_STRING::MaximumLength</a></div><div class="ttdeci">ULONG MaximumLength</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00268">user.h:268</a></div></div>
<div class="ttc" id="aa02961_html_a668dc7e9008960bc451044e1ea615c38"><div class="ttname"><a href="a02961.html#a668dc7e9008960bc451044e1ea615c38">tagBROADCASTMSG::to</a></div><div class="ttdeci">struct tagBROADCASTMSG::@16 to</div></div>
<div class="ttc" id="aa02949_html_a856e9fd858c8bdaf2ebbec24df1de084"><div class="ttname"><a href="a02949.html#a856e9fd858c8bdaf2ebbec24df1de084">tagINTERSENDMSGEX::fuSend</a></div><div class="ttdeci">UINT fuSend</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02646">userk.h:2646</a></div></div>
<div class="ttc" id="aa02949_html_a547498bf050b0628b65f83ba9237ce84"><div class="ttname"><a href="a02949.html#a547498bf050b0628b65f83ba9237ce84">tagINTERSENDMSGEX::fuCall</a></div><div class="ttdeci">UINT fuCall</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02640">userk.h:2640</a></div></div>
<div class="ttc" id="aa02649_html_a2fa9e5ed0186fa6f16c046d47f736ef2"><div class="ttname"><a href="a02649.html#a2fa9e5ed0186fa6f16c046d47f736ef2">tagCLIENTTHREADINFO::fsChangeBits</a></div><div class="ttdeci">WORD fsChangeBits</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02217">user.h:2217</a></div></div>
<div class="ttc" id="aa02569_html_abf7087f027fa856753b00194fa491d18"><div class="ttname"><a href="a02569.html#abf7087f027fa856753b00194fa491d18">tagCLS::lpfnWorker</a></div><div class="ttdeci">PROC lpfnWorker</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01349">user.h:1349</a></div></div>
<div class="ttc" id="aa03257_html_a8f31d83ac0a205f71d1ef0bf7c64ed8b"><div class="ttname"><a href="a03257.html#a8f31d83ac0a205f71d1ef0bf7c64ed8b">gpsmsList</a></div><div class="ttdeci">PSMS gpsmsList</div><div class="ttdef"><b>Definition:</b> <a href="a03257_source.html#l00174">kernel/globals.c:174</a></div></div>
<div class="ttc" id="aa00671_html_af0a7cefc146c51b12208e692b0f67960"><div class="ttname"><a href="a00671.html#af0a7cefc146c51b12208e692b0f67960">xxxDefWindowProc</a></div><div class="ttdeci">LONG xxxDefWindowProc(PWND pwnd, UINT message, DWORD wParam, LONG lParam)</div><div class="ttdef"><b>Definition:</b> <a href="a00671_source.html#l01146">dwp.c:1146</a></div></div>
<div class="ttc" id="aa02801_html"><div class="ttname"><a href="a02801.html">tagDESKTOP</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01703">userk.h:1703</a></div></div>
<div class="ttc" id="aa02569_html_aa186be7fc47d6ee190a1fd364459a743"><div class="ttname"><a href="a02569.html#aa186be7fc47d6ee190a1fd364459a743">tagCLS::fnid</a></div><div class="ttdeci">WORD fnid</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01327">user.h:1327</a></div></div>
<div class="ttc" id="aa02949_html_a3d5a6d1389eee512ee74e85d7d37988b"><div class="ttname"><a href="a02949.html#a3d5a6d1389eee512ee74e85d7d37988b">tagINTERSENDMSGEX::lRet</a></div><div class="ttdeci">LONG lRet</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02644">userk.h:2644</a></div></div>
<div class="ttc" id="aa02949_html_a90d568c13a21cdb08e2b4d604ea44c2d"><div class="ttname"><a href="a02949.html#a90d568c13a21cdb08e2b4d604ea44c2d">tagINTERSENDMSGEX::lpdwResult</a></div><div class="ttdeci">LPDWORD lpdwResult</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02648">userk.h:2648</a></div></div>
<div class="ttc" id="aa02801_html_a76d4881aa4c15330103e83a80e6b5dc7"><div class="ttname"><a href="a02801.html#a76d4881aa4c15330103e83a80e6b5dc7">tagDESKTOP::pDeskInfo</a></div><div class="ttdeci">PDESKTOPINFO pDeskInfo</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01706">userk.h:1706</a></div></div>
<div class="ttc" id="aa02945_html_ad38b92af7d164a277eb2d30b5e65a489"><div class="ttname"><a href="a02945.html#ad38b92af7d164a277eb2d30b5e65a489">tagSMS::dwData</a></div><div class="ttdeci">DWORD dwData</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02605">userk.h:2605</a></div></div>
<div class="ttc" id="aa02961_html_a90d568c13a21cdb08e2b4d604ea44c2d"><div class="ttname"><a href="a02961.html#a90d568c13a21cdb08e2b4d604ea44c2d">tagBROADCASTMSG::lpdwResult</a></div><div class="ttdeci">LPDWORD lpdwResult</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02701">userk.h:2701</a></div></div>
<div class="ttc" id="aa03188_html_a64784361de3f90215827f6d66600d58f"><div class="ttname"><a href="a03188.html#a64784361de3f90215827f6d66600d58f">xxxDDETrackSendHook</a></div><div class="ttdeci">BOOL xxxDDETrackSendHook(PWND pwndTo, DWORD message, WPARAM wParam, LONG lParam)</div><div class="ttdoc">xxxDDETrackSendHook</div><div class="ttdef"><b>Definition:</b> <a href="a03188_source.html#l00157">kernel/ddetrack.c:157</a></div></div>
<div class="ttc" id="aa02641_html_acb492d29e9933b1378a48aa31c2b7290"><div class="ttname"><a href="a02641.html#acb492d29e9933b1378a48aa31c2b7290">_DLG::lpfnDlg</a></div><div class="ttdeci">WNDPROC lpfnDlg</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02147">user.h:2147</a></div></div>
<div class="ttc" id="aa00953_html_a392e62da233ed3e2f7c3fd4f487a3896"><div class="ttname"><a href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a></div><div class="ttdeci">int INT</div><div class="ttdef"><b>Definition:</b> <a href="a00953_source.html#l00006">bench.c:6</a></div></div>
<div class="ttc" id="aa02889_html_aa58ea5e7644e85127ac49b6ab8880a12"><div class="ttname"><a href="a02889.html#aa58ea5e7644e85127ac49b6ab8880a12">tagTHREADINFO::psmsReceiveList</a></div><div class="ttdeci">struct tagSMS * psmsReceiveList</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02300">userk.h:2300</a></div></div>
<div class="ttc" id="aa00365_html_a373eb8782e10ebad75e466db8d01ebe0"><div class="ttname"><a href="a00365.html#a373eb8782e10ebad75e466db8d01ebe0">_GetClientRect</a></div><div class="ttdeci">BOOL _GetClientRect(PWND pwnd, LPRECT prc)</div><div class="ttdef"><b>Definition:</b> <a href="a03752_source.html#l00745">rtl/wow.c:745</a></div></div>
<div class="ttc" id="aa00842_html_a515921616ee307c5862eb0be3a8e7c1e"><div class="ttname"><a href="a00842.html#a515921616ee307c5862eb0be3a8e7c1e">psTcb</a></div><div class="ttdeci">PRIVILEGE_SET psTcb</div><div class="ttdef"><b>Definition:</b> <a href="a00839_source.html#l00022">security.c:22</a></div></div>
<div class="ttc" id="aa02449_html"><div class="ttname"><a href="a02449.html">_LARGE_STRING</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00266">user.h:266</a></div></div>
<div class="ttc" id="aa02949_html_a7ee9bbcad17fb211571e22478070487e"><div class="ttname"><a href="a02949.html#a7ee9bbcad17fb211571e22478070487e">tagINTERSENDMSGEX::lpResultCallBack</a></div><div class="ttdeci">SENDASYNCPROC lpResultCallBack</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02642">userk.h:2642</a></div></div>
<div class="ttc" id="aa02945_html_a5e6806726c901bac1a235d0caf8deb96"><div class="ttname"><a href="a02945.html#a5e6806726c901bac1a235d0caf8deb96">tagSMS::lParam</a></div><div class="ttdeci">DWORD lParam</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02611">userk.h:2611</a></div></div>
<div class="ttc" id="aa00881_html_a282d32ed2a8d185b9af16311b5e464b9"><div class="ttname"><a href="a00881.html#a282d32ed2a8d185b9af16311b5e464b9">DirectedScheduleTask</a></div><div class="ttdeci">VOID DirectedScheduleTask(PTHREADINFO ptiOld, PTHREADINFO ptiNew, BOOL bSendMsg, PSMS psms)</div><div class="ttdef"><b>Definition:</b> <a href="a00881_source.html#l00575">taskman.c:575</a></div></div>
<div class="ttc" id="aa00371_html_a162a73e20dfabca084a3ebb4581631a8"><div class="ttname"><a href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a></div><div class="ttdeci">#define UserAssert(exp)</div><div class="ttdef"><b>Definition:</b> <a href="a00950_source.html#l00117">usersrv.h:117</a></div></div>
<div class="ttc" id="aa02949_html"><div class="ttname"><a href="a02949.html">tagINTERSENDMSGEX</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02639">userk.h:2639</a></div></div>
<div class="ttc" id="aa00371_html_afa5f32de88404289ec03cd2c0e61e94f"><div class="ttname"><a href="a00371.html#afa5f32de88404289ec03cd2c0e61e94f">RIP_ERROR</a></div><div class="ttdeci">#define RIP_ERROR</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00028">winerrp.h:28</a></div></div>
<div class="ttc" id="aa02933_html_aa7fc615cb4d93cdbb35050784d8d4859"><div class="ttname"><a href="a02933.html#aa7fc615cb4d93cdbb35050784d8d4859">_MDICREATESTRUCTEX::strClass</a></div><div class="ttdeci">UNICODE_STRING strClass</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02576">userk.h:2576</a></div></div>
<div class="ttc" id="aa00842_html_a4bbe3674acd8620c7d8cf43d282241c0"><div class="ttname"><a href="a00842.html#a4bbe3674acd8620c7d8cf43d282241c0">xxxSendMessageTimeout</a></div><div class="ttdeci">LONG xxxSendMessageTimeout(PWND pwnd, UINT message, DWORD wParam, LONG lParam, UINT fuFlags, UINT uTimeout, LPLONG lpdwResult)</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l00644">sendmsg.c:644</a></div></div>
<div class="ttc" id="aa00365_html_aaad45088258144a066fcea47a43bb325"><div class="ttname"><a href="a00365.html#aaad45088258144a066fcea47a43bb325">PDLG</a></div><div class="ttdeci">struct _DLG * PDLG</div></div>
<div class="ttc" id="aa00371_html_a31aafffb49dfe98bdc749c9b35c90162"><div class="ttname"><a href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a></div><div class="ttdeci">#define RIPMSG1(flags, szFmt, p1)</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00132">winerrp.h:132</a></div></div>
<div class="ttc" id="aa03257_html_ad9f551216ba73947832de96844110fca"><div class="ttname"><a href="a03257.html#ad9f551216ba73947832de96844110fca">grpwinstaList</a></div><div class="ttdeci">PWINDOWSTATION grpwinstaList</div><div class="ttdef"><b>Definition:</b> <a href="a03257_source.html#l00182">kernel/globals.c:182</a></div></div>
<div class="ttc" id="aa02937_html"><div class="ttname"><a href="a02937.html">_CWPSTRUCTEX</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02579">userk.h:2579</a></div></div>
<div class="ttc" id="aa00842_html_adb5204decd255d5005372b2c12890113"><div class="ttname"><a href="a00842.html#adb5204decd255d5005372b2c12890113">xxxBroadcastMessage</a></div><div class="ttdeci">LONG xxxBroadcastMessage(PWND pwnd, UINT message, DWORD wParam, LONG lParam, UINT wCmd, PBROADCASTMSG pbcm)</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l02898">sendmsg.c:2898</a></div></div>
<div class="ttc" id="aa00842_html_a69cf2e14dcefd941469ad5126e40f79a"><div class="ttname"><a href="a00842.html#a69cf2e14dcefd941469ad5126e40f79a">xxxSendMessage</a></div><div class="ttdeci">LONG xxxSendMessage(PWND pwnd, UINT message, DWORD wParam, LONG lParam)</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l00613">sendmsg.c:613</a></div></div>
<div class="ttc" id="aa00257_html_a8315d2c807ba18ba9e528c40614b6173"><div class="ttname"><a href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a></div><div class="ttdeci">PTHREADINFO PtiCurrent(VOID)</div><div class="ttdef"><b>Definition:</b> <a href="a00263_source.html#l00526">winmgrc.c:526</a></div></div>
<div class="ttc" id="aa00842_html_a4a6043207f9c1429e7022efbfa9f4086"><div class="ttname"><a href="a00842.html#a4a6043207f9c1429e7022efbfa9f4086">ReceiverDied</a></div><div class="ttdeci">VOID ReceiverDied(PSMS, PSMS *)</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l02453">sendmsg.c:2453</a></div></div>
<div class="ttc" id="aa02457_html_af4ab07640de8950ca1f439bb34be4b53"><div class="ttname"><a href="a02457.html#af4ab07640de8950ca1f439bb34be4b53">_LARGE_UNICODE_STRING::bAnsi</a></div><div class="ttdeci">ULONG bAnsi</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00283">user.h:283</a></div></div>
<div class="ttc" id="aa02593_html_afb3d7001b68180cb9b2b8021a79d43aa"><div class="ttname"><a href="a02593.html#afb3d7001b68180cb9b2b8021a79d43aa">tagHOOK::iHook</a></div><div class="ttdeci">int iHook</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01474">user.h:1474</a></div></div>
<div class="ttc" id="aa00674_html_ac42b3a26d86746846b51a69d11fc0797"><div class="ttname"><a href="a00674.html#ac42b3a26d86746846b51a69d11fc0797">FreeHwndList</a></div><div class="ttdeci">void FreeHwndList(PBWL pbwl)</div><div class="ttdef"><b>Definition:</b> <a href="a00674_source.html#l00340">enumwin.c:340</a></div></div>
<div class="ttc" id="aa03290_html_aa573471dabf238131312c12fb896b945"><div class="ttname"><a href="a03290.html#aa573471dabf238131312c12fb896b945">PostEventMessage</a></div><div class="ttdeci">BOOL PostEventMessage(PTHREADINFO pti, PQ pq, DWORD dwQEvent, PWND pwnd, UINT message, DWORD wParam, LONG lParam)</div><div class="ttdef"><b>Definition:</b> <a href="a03290_source.html#l01893">kernel/input.c:1893</a></div></div>
<div class="ttc" id="aa02945_html_a037f5951f037130a39c9fd550487f6ef"><div class="ttname"><a href="a02945.html#a037f5951f037130a39c9fd550487f6ef">tagSMS::psmsSendList</a></div><div class="ttdeci">struct tagSMS * psmsSendList</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02596">userk.h:2596</a></div></div>
<div class="ttc" id="aa02517_html"><div class="ttname"><a href="a02517.html">_WNDMSG</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01053">user.h:1053</a></div></div>
<div class="ttc" id="aa00899_html_ae8b51d27d387b2045504ff36e096e240"><div class="ttname"><a href="a00899.html#ae8b51d27d387b2045504ff36e096e240">PMDICREATESTRUCTEX</a></div><div class="ttdeci">struct _MDICREATESTRUCTEX * PMDICREATESTRUCTEX</div></div>
<div class="ttc" id="aa02945_html_a68937d60a6f49b7a8431db62b38ea721"><div class="ttname"><a href="a02945.html#a68937d60a6f49b7a8431db62b38ea721">tagSMS::spwnd</a></div><div class="ttdeci">struct tagWND * spwnd</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02613">userk.h:2613</a></div></div>
<div class="ttc" id="aa03257_html_aec7ff19e26adc101b25587d2cb55dfa0"><div class="ttname"><a href="a03257.html#aec7ff19e26adc101b25587d2cb55dfa0">guDdeSendTimeout</a></div><div class="ttdeci">UINT guDdeSendTimeout</div><div class="ttdef"><b>Definition:</b> <a href="a03257_source.html#l00279">kernel/globals.c:279</a></div></div>
<div class="ttc" id="aa02945_html_a157200d5cba7c1522e8f64c602d7ea7b"><div class="ttname"><a href="a02945.html#a157200d5cba7c1522e8f64c602d7ea7b">tagSMS::psmsSendNext</a></div><div class="ttdeci">struct tagSMS * psmsSendNext</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02597">userk.h:2597</a></div></div>
<div class="ttc" id="aa02945_html"><div class="ttname"><a href="a02945.html">tagSMS</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02593">userk.h:2593</a></div></div>
<div class="ttc" id="aa00371_html_ae61d954062a9ece52e350e54cad9a23d"><div class="ttname"><a href="a00371.html#ae61d954062a9ece52e350e54cad9a23d">RIPERR0</a></div><div class="ttdeci">#define RIPERR0(idErr, flags, szFmt)</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00119">winerrp.h:119</a></div></div>
<div class="ttc" id="aa00257_html_a933a4a4818762a03428fe021dd9772a4"><div class="ttname"><a href="a00257.html#a933a4a4818762a03428fe021dd9772a4">_PostMessage</a></div><div class="ttdeci">BOOL _PostMessage(HWND hwnd, UINT msg, DWORD wParam, LONG lParam, BOOL bAnsi)</div></div>
<div class="ttc" id="aa02449_html_a372d153f4b52e56d80dfa3eba11db02b"><div class="ttname"><a href="a02449.html#a372d153f4b52e56d80dfa3eba11db02b">_LARGE_STRING::Buffer</a></div><div class="ttdeci">PVOID Buffer</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00270">user.h:270</a></div></div>
<div class="ttc" id="aa00899_html_a1a40e60b709346f7ba00b61880d7fe39"><div class="ttname"><a href="a00899.html#a1a40e60b709346f7ba00b61880d7fe39">SMS</a></div><div class="ttdeci">struct tagSMS SMS</div></div>
<div class="ttc" id="aa00899_html_abfae1dfb48db23dcea4494f7990ad6a6"><div class="ttname"><a href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a></div><div class="ttdeci">VOID ThreadLock(PVOID pobj, PTL ptl)</div></div>
<div class="ttc" id="aa02933_html"><div class="ttname"><a href="a02933.html">_MDICREATESTRUCTEX</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02573">userk.h:2573</a></div></div>
<div class="ttc" id="aa02961_html_a7ee9bbcad17fb211571e22478070487e"><div class="ttname"><a href="a02961.html#a7ee9bbcad17fb211571e22478070487e">tagBROADCASTMSG::lpResultCallBack</a></div><div class="ttdeci">SENDASYNCPROC lpResultCallBack</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02694">userk.h:2694</a></div></div>
<div class="ttc" id="aa02449_html_abfb371817eb1c8f0d8a165bb2b798092"><div class="ttname"><a href="a02449.html#abfb371817eb1c8f0d8a165bb2b798092">_LARGE_STRING::Length</a></div><div class="ttdeci">ULONG Length</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00267">user.h:267</a></div></div>
<div class="ttc" id="aa00842_html_ac66681a8eebdc06117bf079d61c126f3"><div class="ttname"><a href="a00842.html#ac66681a8eebdc06117bf079d61c126f3">SMSLookasideBounds</a></div><div class="ttdeci">PVOID SMSLookasideBounds</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l00029">sendmsg.c:29</a></div></div>
<div class="ttc" id="aa00020_html_ac02f0141c423acd033ecdd2a757a3cc1"><div class="ttname"><a href="a00020.html#ac02f0141c423acd033ecdd2a757a3cc1">gSharedInfo</a></div><div class="ttdeci">SHAREDINFO gSharedInfo</div><div class="ttdef"><b>Definition:</b> <a href="a00020_source.html#l00040">clglobal.c:40</a></div></div>
<div class="ttc" id="aa02809_html"><div class="ttname"><a href="a02809.html">tagWINDOWSTATION</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01744">userk.h:1744</a></div></div>
<div class="ttc" id="aa00017_html_a38f9f1cda93f580ed3ac238d15bd06f7"><div class="ttname"><a href="a00017.html#a38f9f1cda93f580ed3ac238d15bd06f7">BuildHwndList</a></div><div class="ttdeci">DWORD BuildHwndList(HDESK hdesk, HWND hwndNext, BOOL fEnumChildren, DWORD idThread, HWND **pphwndFirst)</div><div class="ttdef"><b>Definition:</b> <a href="a00017_source.html#l00112">clenum.c:112</a></div></div>
<div class="ttc" id="aa02661_html_a9e27c6666cd80d42c078d160ef2c15e6"><div class="ttname"><a href="a02661.html#a9e27c6666cd80d42c078d160ef2c15e6">tagSNDMSGTIMEOUT::fuFlags</a></div><div class="ttdeci">UINT fuFlags</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02387">user.h:2387</a></div></div>
<div class="ttc" id="aa00842_html_add838c111b491936750292a866544ada"><div class="ttname"><a href="a00842.html#add838c111b491936750292a866544ada">NoString</a></div><div class="ttdeci">#define NoString</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l01231">sendmsg.c:1231</a></div></div>
<div class="ttc" id="aa02513_html_a6f4de7f11f44318feef70149fa2d31cc"><div class="ttname"><a href="a02513.html#a6f4de7f11f44318feef70149fa2d31cc">tagSERVERINFO::apfnClientW</a></div><div class="ttdeci">struct _PFNCLIENT apfnClientW</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00966">user.h:966</a></div></div>
<div class="ttc" id="aa00563_html_a074685e97e89d6aa2accdfcb82328699"><div class="ttname"><a href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a></div><div class="ttdeci">ddeml v[i&lt; inst &gt;][t&lt; type &gt;][hObj|pObj] Dump DDEML state information ddeml lists all ddeml instances for this process n ddeml t&lt; type &gt; lists all ddeml objects of the given type n n assumes link is first DWORD</div><div class="ttdef"><b>Definition:</b> <a href="a00563_source.html#l00175">exts.h:175</a></div></div>
<div class="ttc" id="aa00842_html_ac6cbd728d486a3a91e1b5d3181ab07aa"><div class="ttname"><a href="a00842.html#ac6cbd728d486a3a91e1b5d3181ab07aa">xxxSystemBroadcastMessage</a></div><div class="ttdeci">VOID xxxSystemBroadcastMessage(UINT message, DWORD wParam, LONG lParam, UINT wCmd, PBROADCASTMSG pbcm)</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l00919">sendmsg.c:919</a></div></div>
<div class="ttc" id="aa02945_html_a27efa4726ffb5b422ea6d637046cc55a"><div class="ttname"><a href="a02945.html#a27efa4726ffb5b422ea6d637046cc55a">tagSMS::psmsReceiveNext</a></div><div class="ttdeci">struct tagSMS * psmsReceiveNext</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02599">userk.h:2599</a></div></div>
<div class="ttc" id="aa00707_html_a47795b53cdc961798b5310ea5b01456b"><div class="ttname"><a href="a00707.html#a47795b53cdc961798b5310ea5b01456b">FHungApp</a></div><div class="ttdeci">BOOL FHungApp(PTHREADINFO pti, DWORD dwTimeFromLastRead)</div><div class="ttdef"><b>Definition:</b> <a href="a00707_source.html#l00130">hungapp.c:130</a></div></div>
<div class="ttc" id="aa02913_html"><div class="ttname"><a href="a02913.html">tagBWL</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02493">userk.h:2493</a></div></div>
<div class="ttc" id="aa00842_html_acab1ecbb6c75cb99acb278cd2451518d"><div class="ttname"><a href="a00842.html#acab1ecbb6c75cb99acb278cd2451518d">SenderDied</a></div><div class="ttdeci">VOID SenderDied(PSMS, PSMS *)</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l02599">sendmsg.c:2599</a></div></div>
<div class="ttc" id="aa02945_html_af0d1e4ac0443bd32ed966f7e471183b8"><div class="ttname"><a href="a02945.html#af0d1e4ac0443bd32ed966f7e471183b8">tagSMS::ptiSender</a></div><div class="ttdeci">PTHREADINFO ptiSender</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02601">userk.h:2601</a></div></div>
<div class="ttc" id="aa01881_html"><div class="ttname"><a href="a01881.html">_TL</a></div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00347">usercli.h:347</a></div></div>
<div class="ttc" id="aa02945_html_a3d5a6d1389eee512ee74e85d7d37988b"><div class="ttname"><a href="a02945.html#a3d5a6d1389eee512ee74e85d7d37988b">tagSMS::lRet</a></div><div class="ttdeci">LONG lRet</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02608">userk.h:2608</a></div></div>
<div class="ttc" id="aa00365_html_a2313d9960d832da75d595b73ff75d1dc"><div class="ttname"><a href="a00365.html#a2313d9960d832da75d595b73ff75d1dc">wcsncpycch</a></div><div class="ttdeci">DWORD wcsncpycch(LPWSTR pwsDest, LPCWSTR pwszSrc, DWORD cch)</div><div class="ttdef"><b>Definition:</b> <a href="a03650_source.html#l00146">rtl/random.c:146</a></div></div>
<div class="ttc" id="aa02581_html"><div class="ttname"><a href="a02581.html">tagWND</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01388">user.h:1388</a></div></div>
<div class="ttc" id="aa02949_html_ad38b92af7d164a277eb2d30b5e65a489"><div class="ttname"><a href="a02949.html#ad38b92af7d164a277eb2d30b5e65a489">tagINTERSENDMSGEX::dwData</a></div><div class="ttdeci">DWORD dwData</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02643">userk.h:2643</a></div></div>
<div class="ttc" id="aa02961_html_ad38b92af7d164a277eb2d30b5e65a489"><div class="ttname"><a href="a02961.html#ad38b92af7d164a277eb2d30b5e65a489">tagBROADCASTMSG::dwData</a></div><div class="ttdeci">DWORD dwData</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02695">userk.h:2695</a></div></div>
<div class="ttc" id="aa02501_html_aa8d047fb3797fd6b520383ee297357bf"><div class="ttname"><a href="a02501.html#aa8d047fb3797fd6b520383ee297357bf">_PFNCLIENT::pfnDispatchMessage</a></div><div class="ttdeci">PROC pfnDispatchMessage</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00752">user.h:752</a></div></div>
<div class="ttc" id="aa02905_html"><div class="ttname"><a href="a02905.html">tagPROCESSINFO</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02386">userk.h:2386</a></div></div>
<div class="ttc" id="aa02889_html_a9e9fc9ec28f5b2ebac921b669df50531"><div class="ttname"><a href="a02889.html#a9e9fc9ec28f5b2ebac921b669df50531">tagTHREADINFO::psmsSent</a></div><div class="ttdeci">struct tagSMS * psmsSent</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02298">userk.h:2298</a></div></div>
<div class="ttc" id="aa02457_html_a99314e2f6ea6b552b9538bbe7b7e64ba"><div class="ttname"><a href="a02457.html#a99314e2f6ea6b552b9538bbe7b7e64ba">_LARGE_UNICODE_STRING::Buffer</a></div><div class="ttdeci">PWSTR Buffer</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00284">user.h:284</a></div></div>
<div class="ttc" id="aa00371_html_a41f433389f20db57f042022a662e96de"><div class="ttname"><a href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a></div><div class="ttdeci">#define RIP_WARNING</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00029">winerrp.h:29</a></div></div>
<div class="ttc" id="aa02953_html_aa72255e7356d612ad72bb45def01fcbb"><div class="ttname"><a href="a02953.html#aa72255e7356d612ad72bb45def01fcbb">tagASYNCSENDMSG::hwnd</a></div><div class="ttdeci">HWND hwnd</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02664">userk.h:2664</a></div></div>
<div class="ttc" id="aa02449_html_af4ab07640de8950ca1f439bb34be4b53"><div class="ttname"><a href="a02449.html#af4ab07640de8950ca1f439bb34be4b53">_LARGE_STRING::bAnsi</a></div><div class="ttdeci">ULONG bAnsi</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00269">user.h:269</a></div></div>
<div class="ttc" id="aa02581_html_ae7a5a1d213bfe6dce2e6eab68a2a8bb8"><div class="ttname"><a href="a02581.html#ae7a5a1d213bfe6dce2e6eab68a2a8bb8">tagWND::lpfnWndProc</a></div><div class="ttdeci">WNDPROC_PWND lpfnWndProc</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01401">user.h:1401</a></div></div>
<div class="ttc" id="aa02521_html_a7e26cfe7a314d23f30409cf4dcb86b82"><div class="ttname"><a href="a02521.html#a7e26cfe7a314d23f30409cf4dcb86b82">tagSHAREDINFO::awmControl</a></div><div class="ttdeci">WNDMSG awmControl[FNID_END - FNID_START+1]</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01068">user.h:1068</a></div></div>
<div class="ttc" id="aa02801_html_ace92d08d0736aef3f0b73273a6e3e5f7"><div class="ttname"><a href="a02801.html#ace92d08d0736aef3f0b73273a6e3e5f7">tagDESKTOP::rpdeskNext</a></div><div class="ttdeci">struct tagDESKTOP * rpdeskNext</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01709">userk.h:1709</a></div></div>
<div class="ttc" id="aa02953_html_a5e6806726c901bac1a235d0caf8deb96"><div class="ttname"><a href="a02953.html#a5e6806726c901bac1a235d0caf8deb96">tagASYNCSENDMSG::lParam</a></div><div class="ttdeci">DWORD lParam</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02662">userk.h:2662</a></div></div>
<div class="ttc" id="aa02945_html_ac8857c754110e179cc769f84373117ca"><div class="ttname"><a href="a02945.html#ac8857c754110e179cc769f84373117ca">tagSMS::flags</a></div><div class="ttdeci">UINT flags</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02609">userk.h:2609</a></div></div>
<div class="ttc" id="aa00365_html_a4dddfac60ddaa5a11f91719826b7b270"><div class="ttname"><a href="a00365.html#a4dddfac60ddaa5a11f91719826b7b270">RtlInitLargeUnicodeString</a></div><div class="ttdeci">VOID RtlInitLargeUnicodeString(PLARGE_UNICODE_STRING plstr, LPCWSTR psz, UINT cchLimit)</div><div class="ttdef"><b>Definition:</b> <a href="a00932_source.html#l00587">chartran.c:587</a></div></div>
<div class="ttc" id="aa00701_html_aadb4af8217baa0735eae3b6b14a1cdb1"><div class="ttname"><a href="a00701.html#aadb4af8217baa0735eae3b6b14a1cdb1">xxxCallHook2</a></div><div class="ttdeci">int xxxCallHook2(PHOOK phkCall, int nCode, DWORD wParam, DWORD lParam, LPBOOL lpbAnsiHook)</div><div class="ttdef"><b>Definition:</b> <a href="a00701_source.html#l00996">hooks.c:996</a></div></div>
<div class="ttc" id="aa02961_html_a85a9b71d92ab350834cac1753f14a972"><div class="ttname"><a href="a02961.html#a85a9b71d92ab350834cac1753f14a972">tagBROADCASTMSG::bClientRequest</a></div><div class="ttdeci">BOOL bClientRequest</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02696">userk.h:2696</a></div></div>
<div class="ttc" id="aa02661_html"><div class="ttname"><a href="a02661.html">tagSNDMSGTIMEOUT</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02386">user.h:2386</a></div></div>
<div class="ttc" id="aa02961_html"><div class="ttname"><a href="a02961.html">tagBROADCASTMSG</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02692">userk.h:2692</a></div></div>
<div class="ttc" id="aa02457_html_ad355c4270a8465c419a47e3e68098cf1"><div class="ttname"><a href="a02457.html#ad355c4270a8465c419a47e3e68098cf1">_LARGE_UNICODE_STRING::MaximumLength</a></div><div class="ttdeci">ULONG MaximumLength</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00282">user.h:282</a></div></div>
<div class="ttc" id="aa00842_html_aec00217f2ba38eaaca234a78f94172aa"><div class="ttname"><a href="a00842.html#aec00217f2ba38eaaca234a78f94172aa">xxxSendMessageEx</a></div><div class="ttdeci">LONG xxxSendMessageEx(PWND pwnd, UINT message, DWORD wParam, LONG lParam, DWORD xParam)</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l00533">sendmsg.c:533</a></div></div>
<div class="ttc" id="aa02913_html_abebc9955f9d1fbc422612b6eab345d2e"><div class="ttname"><a href="a02913.html#abebc9955f9d1fbc422612b6eab345d2e">tagBWL::rghwnd</a></div><div class="ttdeci">HWND rghwnd[1]</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02498">userk.h:2498</a></div></div>
<div class="ttc" id="aa02937_html_a2a4daf3bf234ddf89523fc62f9e0904a"><div class="ttname"><a href="a02937.html#a2a4daf3bf234ddf89523fc62f9e0904a">_CWPSTRUCTEX::psmsSender</a></div><div class="ttdeci">struct tagSMS * psmsSender</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02581">userk.h:2581</a></div></div>
<div class="ttc" id="aa02457_html_abfb371817eb1c8f0d8a165bb2b798092"><div class="ttname"><a href="a02457.html#abfb371817eb1c8f0d8a165bb2b798092">_LARGE_UNICODE_STRING::Length</a></div><div class="ttdeci">ULONG Length</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00281">user.h:281</a></div></div>
<div class="ttc" id="aa00719_html_a0d8ef5056a80a305334bd6c49dfbe32a"><div class="ttname"><a href="a00719.html#a0d8ef5056a80a305334bd6c49dfbe32a">cbAlloc</a></div><div class="ttdeci">#define cbAlloc</div></div>
<div class="ttc" id="aa02809_html_aafbda282c78d875d4491cf817366dc1b"><div class="ttname"><a href="a02809.html#aafbda282c78d875d4491cf817366dc1b">tagWINDOWSTATION::rpdeskList</a></div><div class="ttdeci">struct tagDESKTOP * rpdeskList</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01746">userk.h:1746</a></div></div>
<div class="ttc" id="aa00842_html_aa9f7698b1d1cb8fb92adb2ff6b17effd"><div class="ttname"><a href="a00842.html#aa9f7698b1d1cb8fb92adb2ff6b17effd">SMSLookasideBase</a></div><div class="ttdeci">PVOID SMSLookasideBase</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l00028">sendmsg.c:28</a></div></div>
<div class="ttc" id="aa02889_html_abb1184e0c5805b5ad89b79dcc2bd17c8"><div class="ttname"><a href="a02889.html#abb1184e0c5805b5ad89b79dcc2bd17c8">tagTHREADINFO::rpdesk</a></div><div class="ttdeci">PDESKTOP rpdesk</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02288">userk.h:2288</a></div></div>
<div class="ttc" id="aa00842_html_ad97dfdc535ff9d65db86f8206e7a38f8"><div class="ttname"><a href="a00842.html#ad97dfdc535ff9d65db86f8206e7a38f8">AllocSMS</a></div><div class="ttdeci">PSMS AllocSMS(VOID)</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l00150">sendmsg.c:150</a></div></div>
<div class="ttc" id="aa02957_html_afa8756db27fa6b54be8584b5e458df6e"><div class="ttname"><a href="a02957.html#afa8756db27fa6b54be8584b5e458df6e">tagHOOKMSGSTRUCT::nCode</a></div><div class="ttdeci">int nCode</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02675">userk.h:2675</a></div></div>
<div class="ttc" id="aa02889_html_a6f56a147ff76c3fc48c358f05adb0473"><div class="ttname"><a href="a02889.html#a6f56a147ff76c3fc48c358f05adb0473">tagTHREADINFO::pcti</a></div><div class="ttdeci">PCLIENTTHREADINFO pcti</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02280">userk.h:2280</a></div></div>
<div class="ttc" id="aa00839_html_ad5164087ca1b77435e44c75a73c0538f"><div class="ttname"><a href="a00839.html#ad5164087ca1b77435e44c75a73c0538f">IsPrivileged</a></div><div class="ttdeci">BOOL IsPrivileged(PPRIVILEGE_SET ppSet)</div><div class="ttdef"><b>Definition:</b> <a href="a00839_source.html#l00554">security.c:554</a></div></div>
<div class="ttc" id="aa02961_html_ad5de33f64346536444ff1b332231462e"><div class="ttname"><a href="a02961.html#ad5de33f64346536444ff1b332231462e">tagBROADCASTMSG::cb</a></div><div class="ttdeci">struct tagBROADCASTMSG::@15 cb</div></div>
<div class="ttc" id="aa02889_html_acb905cc16afd506363b5593dd0ad5dee"><div class="ttname"><a href="a02889.html#acb905cc16afd506363b5593dd0ad5dee">tagTHREADINFO::cEnterCount</a></div><div class="ttdeci">int cEnterCount</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02269">userk.h:2269</a></div></div>
<div class="ttc" id="aa02941_html_a2a4daf3bf234ddf89523fc62f9e0904a"><div class="ttname"><a href="a02941.html#a2a4daf3bf234ddf89523fc62f9e0904a">_CWPRETSTRUCTEX::psmsSender</a></div><div class="ttdeci">struct tagSMS * psmsSender</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02587">userk.h:2587</a></div></div>
<div class="ttc" id="aa02945_html_a7630a07d46e4a34e408cfb326d9d0648"><div class="ttname"><a href="a02945.html#a7630a07d46e4a34e408cfb326d9d0648">tagSMS::wParam</a></div><div class="ttdeci">DWORD wParam</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02610">userk.h:2610</a></div></div>
<div class="ttc" id="aa02661_html_a14cb5ba1beb73f2dbfcf1a09287c48c3"><div class="ttname"><a href="a02661.html#a14cb5ba1beb73f2dbfcf1a09287c48c3">tagSNDMSGTIMEOUT::lSMTOResult</a></div><div class="ttdeci">UINT lSMTOResult</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02390">user.h:2390</a></div></div>
<div class="ttc" id="aa03608_html_afd1a0e78d1f88954d93e48ab3821781f"><div class="ttname"><a href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a></div><div class="ttdeci">typedef UINT(FAR WINAPI *MSGSOUNDPROC)()</div></div>
<div class="ttc" id="aa00842_html_a9e53f556a04607e23d1b746d5274b952"><div class="ttname"><a href="a00842.html#a9e53f556a04607e23d1b746d5274b952">xxxInterSendMsgEx</a></div><div class="ttdeci">LONG xxxInterSendMsgEx(PWND pwnd, UINT message, DWORD wParam, DWORD lParam, PTHREADINFO ptiSender, PTHREADINFO ptiReceiver, PINTRSENDMSGEX pism)</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l01235">sendmsg.c:1235</a></div></div>
<div class="ttc" id="aa00824_html_a9fdadf9722ab6b6f80c2f840f95b2fd3"><div class="ttname"><a href="a00824.html#a9fdadf9722ab6b6f80c2f840f95b2fd3">xxxSleepThread</a></div><div class="ttdeci">BOOL xxxSleepThread(UINT fsWakeMask, DWORD Timeout, BOOL fInputIdle)</div><div class="ttdef"><b>Definition:</b> <a href="a00824_source.html#l03096">queue.c:3096</a></div></div>
<div class="ttc" id="aa00365_html_aa453bfba298bc156c84c4a04a89b4436"><div class="ttname"><a href="a00365.html#aa453bfba298bc156c84c4a04a89b4436">PLARGE_STRING</a></div><div class="ttdeci">struct _LARGE_STRING * PLARGE_STRING</div></div>
<div class="ttc" id="aa02945_html_a3990f5e5b951e4bc69a3f0330bd556ff"><div class="ttname"><a href="a02945.html#a3990f5e5b951e4bc69a3f0330bd556ff">tagSMS::pvCapture</a></div><div class="ttdeci">PVOID pvCapture</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02614">userk.h:2614</a></div></div>
<div class="ttc" id="aa00365_html_abce9368ed5b93dc4c0e3e9cc7c99157b"><div class="ttname"><a href="a00365.html#abce9368ed5b93dc4c0e3e9cc7c99157b">PETHREAD</a></div><div class="ttdeci">struct _ETHREAD * PETHREAD</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00060">user.h:60</a></div></div>
<div class="ttc" id="aa00899_html_a70b09c3e2b495630f4205d34be505afb"><div class="ttname"><a href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a></div><div class="ttdeci">VOID CheckLock(PVOID pobj)</div></div>
<div class="ttc" id="aa02517_html_a42d641821b5c3c8a4f9dd0328dabfc8a"><div class="ttname"><a href="a02517.html#a42d641821b5c3c8a4f9dd0328dabfc8a">_WNDMSG::maxMsgs</a></div><div class="ttdeci">UINT maxMsgs</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01054">user.h:1054</a></div></div>
<div class="ttc" id="aa00842_html_acfe6f35d8e62e08d08e52a221f643c9d"><div class="ttname"><a href="a00842.html#acfe6f35d8e62e08d08e52a221f643c9d">xxxSendMessageCallback</a></div><div class="ttdeci">BOOL xxxSendMessageCallback(PWND pwnd, UINT message, DWORD wParam, LONG lParam, SENDASYNCPROC lpResultCallBack, DWORD dwData, BOOL fClientRequest)</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l01013">sendmsg.c:1013</a></div></div>
<div class="ttc" id="aa02945_html_a3fd6896ac063a5ed60d72ed34f133041"><div class="ttname"><a href="a02945.html#a3fd6896ac063a5ed60d72ed34f133041">tagSMS::tSent</a></div><div class="ttdeci">DWORD tSent</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02600">userk.h:2600</a></div></div>
<div class="ttc" id="aa02609_html_a68937d60a6f49b7a8431db62b38ea721"><div class="ttname"><a href="a02609.html#a68937d60a6f49b7a8431db62b38ea721">tagDESKTOPINFO::spwnd</a></div><div class="ttdeci">struct tagWND * spwnd</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01603">user.h:1603</a></div></div>
<div class="ttc" id="aa00371_html_adbdd8355d15a97b6f3a9e4766e6a2cc1"><div class="ttname"><a href="a00371.html#adbdd8355d15a97b6f3a9e4766e6a2cc1">RIPERR1</a></div><div class="ttdeci">#define RIPERR1(idErr, flags, szFmt, p1)</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00120">winerrp.h:120</a></div></div>
<div class="ttc" id="aa02889_html"><div class="ttname"><a href="a02889.html">tagTHREADINFO</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02260">userk.h:2260</a></div></div>
<div class="ttc" id="aa02581_html_a6171c9000ea2060597a9bcf498ee0316"><div class="ttname"><a href="a02581.html#a6171c9000ea2060597a9bcf498ee0316">tagWND::spwndChild</a></div><div class="ttdeci">struct tagWND * spwndChild</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01393">user.h:1393</a></div></div>
<div class="ttc" id="aa02953_html_a2878d2b3ecc6a3d2477bc260ee848675"><div class="ttname"><a href="a02953.html#a2878d2b3ecc6a3d2477bc260ee848675">tagASYNCSENDMSG::message</a></div><div class="ttdeci">UINT message</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02663">userk.h:2663</a></div></div>
<div class="ttc" id="aa02661_html_acf1d1660695dbf638313f938156a442c"><div class="ttname"><a href="a02661.html#acf1d1660695dbf638313f938156a442c">tagSNDMSGTIMEOUT::lSMTOReturn</a></div><div class="ttdeci">UINT lSMTOReturn</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02389">user.h:2389</a></div></div>
<div class="ttc" id="aa02889_html_a99fe3da4061cf81a351510d8e24abe5b"><div class="ttname"><a href="a02889.html#a99fe3da4061cf81a351510d8e24abe5b">tagTHREADINFO::psmsCurrent</a></div><div class="ttdeci">struct tagSMS * psmsCurrent</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02299">userk.h:2299</a></div></div>
<div class="ttc" id="aa00842_html_a5e2cf05ab05318fd5654f254de252686"><div class="ttname"><a href="a00842.html#a5e2cf05ab05318fd5654f254de252686">FreeSMS</a></div><div class="ttdeci">void FreeSMS(PSMS psms)</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l00193">sendmsg.c:193</a></div></div>
<div class="ttc" id="aa02945_html_a08fcc422c6f01bad78bfd4c9c9e4ddb6"><div class="ttname"><a href="a02945.html#a08fcc422c6f01bad78bfd4c9c9e4ddb6">tagSMS::psmsNext</a></div><div class="ttdeci">struct tagSMS * psmsNext</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02594">userk.h:2594</a></div></div>
<div class="ttc" id="aa00842_html_a462e0bbeb557ea21b91762d360985ed3"><div class="ttname"><a href="a00842.html#a462e0bbeb557ea21b91762d360985ed3">IsUnicodeString</a></div><div class="ttdeci">#define IsUnicodeString</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l01233">sendmsg.c:1233</a></div></div>
<div class="ttc" id="aa02961_html_a9e27c6666cd80d42c078d160ef2c15e6"><div class="ttname"><a href="a02961.html#a9e27c6666cd80d42c078d160ef2c15e6">tagBROADCASTMSG::fuFlags</a></div><div class="ttdeci">UINT fuFlags</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02699">userk.h:2699</a></div></div>
<div class="ttc" id="aa00842_html_aa38ed6c2085098ea4fb3fb3e84095bc3"><div class="ttname"><a href="a00842.html#aa38ed6c2085098ea4fb3fb3e84095bc3">UnlinkSendListSms</a></div><div class="ttdeci">VOID UnlinkSendListSms(PSMS, PSMS *)</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l02689">sendmsg.c:2689</a></div></div>
<div class="ttc" id="aa02945_html_a7ee9bbcad17fb211571e22478070487e"><div class="ttname"><a href="a02945.html#a7ee9bbcad17fb211571e22478070487e">tagSMS::lpResultCallBack</a></div><div class="ttdeci">SENDASYNCPROC lpResultCallBack</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02604">userk.h:2604</a></div></div>
<div class="ttc" id="aa02945_html_a2878d2b3ecc6a3d2477bc260ee848675"><div class="ttname"><a href="a02945.html#a2878d2b3ecc6a3d2477bc260ee848675">tagSMS::message</a></div><div class="ttdeci">UINT message</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02612">userk.h:2612</a></div></div>
<div class="ttc" id="aa00020_html_ad760da1dd81d9e84dee607d18edfde39"><div class="ttname"><a href="a00020.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a></div><div class="ttdeci">PSERVERINFO gpsi</div><div class="ttdef"><b>Definition:</b> <a href="a00020_source.html#l00039">clglobal.c:39</a></div></div>
<div class="ttc" id="aa02517_html_a2d6495c3cf7fb3fbdd27638ad3de548e"><div class="ttname"><a href="a02517.html#a2d6495c3cf7fb3fbdd27638ad3de548e">_WNDMSG::abMsgs</a></div><div class="ttdeci">BYTE * abMsgs</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01055">user.h:1055</a></div></div>
<div class="ttc" id="aa02933_html_a3e6fe5ad49f6102c935124878b224602"><div class="ttname"><a href="a02933.html#a3e6fe5ad49f6102c935124878b224602">_MDICREATESTRUCTEX::mdics</a></div><div class="ttdeci">MDICREATESTRUCT mdics</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02574">userk.h:2574</a></div></div>
<div class="ttc" id="aa02961_html_ae107724d62987d10ec9c8956bd404195"><div class="ttname"><a href="a02961.html#ae107724d62987d10ec9c8956bd404195">tagBROADCASTMSG::uTimeout</a></div><div class="ttdeci">UINT uTimeout</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02700">userk.h:2700</a></div></div>
<div class="ttc" id="aa02953_html_a7630a07d46e4a34e408cfb326d9d0648"><div class="ttname"><a href="a02953.html#a7630a07d46e4a34e408cfb326d9d0648">tagASYNCSENDMSG::wParam</a></div><div class="ttdeci">DWORD wParam</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02661">userk.h:2661</a></div></div>
<div class="ttc" id="aa02945_html_ad9cf28b93724ef783206c2b010f7202d"><div class="ttname"><a href="a02945.html#ad9cf28b93724ef783206c2b010f7202d">tagSMS::ptiReceiver</a></div><div class="ttdeci">PTHREADINFO ptiReceiver</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02602">userk.h:2602</a></div></div>
<div class="ttc" id="aa02569_html"><div class="ttname"><a href="a02569.html">tagCLS</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01323">user.h:1323</a></div></div>
<div class="ttc" id="aa02661_html_ae107724d62987d10ec9c8956bd404195"><div class="ttname"><a href="a02661.html#ae107724d62987d10ec9c8956bd404195">tagSNDMSGTIMEOUT::uTimeout</a></div><div class="ttdeci">UINT uTimeout</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02388">user.h:2388</a></div></div>
<div class="ttc" id="aa02457_html"><div class="ttname"><a href="a02457.html">_LARGE_UNICODE_STRING</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00280">user.h:280</a></div></div>
<div class="ttc" id="aa00701_html_a4a596c02b66f7f049c18711b882e0b89"><div class="ttname"><a href="a00701.html#a4a596c02b66f7f049c18711b882e0b89">xxxCallHook</a></div><div class="ttdeci">int xxxCallHook(int nCode, DWORD wParam, DWORD lParam, int iHook)</div><div class="ttdef"><b>Definition:</b> <a href="a00701_source.html#l00954">hooks.c:954</a></div></div>
<div class="ttc" id="aa02957_html"><div class="ttname"><a href="a02957.html">tagHOOKMSGSTRUCT</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02673">userk.h:2673</a></div></div>
<div class="ttc" id="aa00842_html_a09e587e3bc8d6cf205bca5689f7a66cc"><div class="ttname"><a href="a00842.html#a09e587e3bc8d6cf205bca5689f7a66cc">xxxSendBSMtoDesktop</a></div><div class="ttdeci">BOOL xxxSendBSMtoDesktop(PWND pwndDesk, UINT message, DWORD wParam, LONG lParam, DWORD dwFlags, DWORD dwRecipients)</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l00320">sendmsg.c:320</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e091ed8704426a7a4980368ba259fde.html">git</a></li><li class="navelem"><a class="el" href="dir_cd70cb5eb491250157f2d55d3ff4b13e.html">backup</a></li><li class="navelem"><a class="el" href="dir_ba2b673b566ba104b956abdc6dec0552.html">org</a></li><li class="navelem"><a class="el" href="dir_5bb0003d7907b45051943541418399f5.html">ntuser</a></li><li class="navelem"><a class="el" href="dir_2a0a56546b70a0973705719e6a88eab3.html">kernel</a></li><li class="navelem"><a class="el" href="a00842.html">sendmsg.c</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
